题目 1030: [编程入门]二维数组的转置 摘要:解题思路:输入:声明一个3*3的数组a[3][3],用两个for循环嵌套输入。输出:只需构造一个方法,在方法将数组的i(行)与j(列)对调输出就行了。但我看了许多大佬发的方法,虽然也是用函数实现的,但…… 题解列表 2023年02月24日 0 点赞 0 评论 322 浏览 评分:0.0
1051: [编程入门]结构体之成绩统计2 摘要:#题目没有说清保留几位小数或者只输出整数,经过我的测试,输出的成绩只要整数即可 ```cpp #include using namespace std; struct Student …… 题解列表 2023年02月24日 0 点赞 1 评论 458 浏览 评分:9.9
字符串去除空格并反转 摘要:def f(): s = input() s =s.replace(" ","") #去除空格 print(s[::-1]) #反转f()…… 题解列表 2023年02月24日 0 点赞 0 评论 348 浏览 评分:0.0
编写题解 1015: [编程入门]求和训练 摘要:解题思路:注意事项:float 类型在做除法时数据类型都要是float参考代码:#include<stdio.h>#include<math.h>int i;int Sum(int a){ …… 题解列表 2023年02月25日 0 点赞 0 评论 252 浏览 评分:0.0
1412: 矩阵的幂 摘要:```cpp #include #include using namespace std; typedef long long LL; class M { public: …… 题解列表 2023年02月25日 0 点赞 0 评论 401 浏览 评分:9.9
1450: 蓝桥杯2014年第五届真题-矩阵翻硬币 摘要:```cpp #include #include using namespace std; string StrMul(string s1,string s2) { string …… 题解列表 2023年02月25日 0 点赞 0 评论 476 浏览 评分:9.9
Python递推解决约瑟夫环 摘要:解题思路:注意事项:参考代码:n,k=map(int,input().split())a=list(range(1,n+1))s=0for i in range(2,n+1): s=(s+k)%…… 题解列表 2023年02月25日 0 点赞 1 评论 343 浏览 评分:0.0
单词翻转,在网上找了很久都感觉太复杂,尝试自己写了一个简洁点的思路 摘要:解题思路:找到单词与空格,空格与单词的间隔点,单词与空格之间打印单词,空格与单词之间打印空格注意事项:建议在草稿纸上画出来理解参考代码:#include<stdio.h>#include<string…… 题解列表 2023年02月25日 0 点赞 0 评论 455 浏览 评分:0.0
c语言 数组加 循环 ,速度 10ms (代码有点长,可ac) 摘要:解题思路: 1.处理 0 的个数,遍历到0 的时候,判断 左右是否为 数字,为数字 直接continue,不为数字 直接 zero++, zero 表示是0的个数 …… 题解列表 2023年02月25日 0 点赞 0 评论 392 浏览 评分:9.9
简单 初学 即 懂! 摘要:```c #include #include int main(){ char arry[100] = {'\0'}; char array[100] =…… 题解列表 2023年02月25日 0 点赞 0 评论 330 浏览 评分:0.0