优质题解 1132: C语言训练-最大数问题 只用套一个while 最简单不绕的解法 ##解题思路比谁大问题不难,本题难点在于判断-1退出和全负数情况下如何判断的问题。如何一直输入在提交窗口就有示例代码,用`while(~scanf)`,退出条件写`if(Num==-1)break;`,如果不加`if(Num 题解列表 2022年05月20日 1 点赞 0 评论 1985 浏览 评分:8.0
编写题解 1598: 蓝桥杯算法训练VIP-学生成绩 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> #include<algorithm> #include<vector> using na…… 题解列表 2022年05月20日 0 点赞 0 评论 585 浏览 评分:0.0
[编程入门]猴子吃桃的问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long n,t=1;int main(){ cin>>n; for(in…… 题解列表 2022年05月20日 0 点赞 0 评论 559 浏览 评分:0.0
【欧几里得算法】求解最大公约数和最小公倍数 解题思路:假如需要求1997和615两个正整数的最大公约数,用欧几里得算法,是这样进行的:1997/615=3(余152)615/152=4(余7)152/7=21(余5)7/5=1(余2)5/2=2(余1)2/1=2(余0)至此,最大公约数为1以除数和余数反复做除法运算, 题解列表 2022年05月20日 0 点赞 0 评论 620 浏览 评分:9.9
[编程入门]数字逆序输出 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a[15];int main(){ for(int i=1;i…… 题解列表 2022年05月20日 0 点赞 0 评论 499 浏览 评分:0.0
1952: 求长方形面积 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<fstream>#include<algorithm>using namespace std;long long a…… 题解列表 2022年05月20日 0 点赞 0 评论 414 浏览 评分:0.0
[编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a[15],s,t;int main(){ for(int i=…… 题解列表 2022年05月20日 0 点赞 0 评论 511 浏览 评分:0.0
二级C语言-等差数列 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<fstream>#include<algorithm>using namespace std;int n,t=2,s…… 题解列表 2022年05月20日 0 点赞 0 评论 480 浏览 评分:0.0
编写题解 1597: 蓝桥杯算法训练VIP-提货单 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> #include<iomanip> using namespace std; struct…… 题解列表 2022年05月20日 0 点赞 0 评论 594 浏览 评分:0.0
“统计字符”的题解方法 解题思路:定义一个函数并调用,分别用p、q、m、n代表英文字母、空格、数字和其他字符的个数注意事项:输入字符用gets,而不用scanf,因为gets函数可以输入一个含空格的字符串;参考代码:#includevoidf(chara[100]){inti=0;intp=0, 题解列表 2022年05月20日 0 点赞 1 评论 1844 浏览 评分:9.9