[编程入门]猴子吃桃的问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long n,t=1;int main(){ cin>>n; for(in…… 题解列表 2022年05月20日 0 点赞 0 评论 364 浏览 评分:0.0
【欧几里得算法】求解最大公约数和最小公倍数 摘要:解题思路:假如需要求 1997 和 615 两个正整数的最大公约数,用欧几里得算法,是这样进行的:1997 / 615 = 3 (余 152)615 / 152 = 4(余7)152 / 7 = 21…… 题解列表 2022年05月20日 0 点赞 0 评论 412 浏览 评分: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 评论 329 浏览 评分:0.0
1952: 求长方形面积 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<fstream>#include<algorithm>using namespace std;long long a…… 题解列表 2022年05月20日 0 点赞 0 评论 263 浏览 评分: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 评论 303 浏览 评分:0.0
二级C语言-等差数列 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<fstream>#include<algorithm>using namespace std;int n,t=2,s…… 题解列表 2022年05月20日 0 点赞 0 评论 327 浏览 评分:0.0
编写题解 1597: 蓝桥杯算法训练VIP-提货单 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> #include<iomanip> using namespace std; struct…… 题解列表 2022年05月20日 0 点赞 0 评论 296 浏览 评分:0.0
“统计字符”的题解方法 摘要:解题思路:定义一个函数并调用,分别用p、q、m、n代表英文字母、空格、数字和其他字符的个数注意事项:输入字符用gets,而不用scanf,因为gets函数可以输入一个含空格的字符串;参考代码:#inc…… 题解列表 2022年05月20日 0 点赞 1 评论 1688 浏览 评分:9.9
编写题解 1586: 蓝桥杯算法训练VIP-A+B problem 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int a,b; cin>>a>>b;…… 题解列表 2022年05月20日 0 点赞 0 评论 214 浏览 评分:0.0
编写题解 1584: 蓝桥杯算法训练VIP-判定字符位置(迭代器3) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { string str1="aeiou"; …… 题解列表 2022年05月20日 0 点赞 0 评论 288 浏览 评分:9.9