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