【cctype字符函数库】求解字符串分类统计 解题思路:利用cctype字符函数库解决问题cctype库内函数isalnum(c);如果参数是字母或数字,函数就返回true,否则返回falseisalpha(c);如果参数是字母,函数返回true,否则返回falseislower(c);如果参数是小写字母, 题解列表 2022年05月20日 0 点赞 0 评论 632 浏览 评分:7.3
编写题解 1598: 蓝桥杯算法训练VIP-学生成绩 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> #include<algorithm> #include<vector> using na…… 题解列表 2022年05月20日 0 点赞 0 评论 581 浏览 评分: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 评论 555 浏览 评分: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 评论 616 浏览 评分: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 评论 497 浏览 评分:0.0
1952: 求长方形面积 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<fstream>#include<algorithm>using namespace std;long long a…… 题解列表 2022年05月20日 0 点赞 0 评论 412 浏览 评分: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 评论 508 浏览 评分:0.0
二级C语言-等差数列 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<fstream>#include<algorithm>using namespace std;int n,t=2,s…… 题解列表 2022年05月20日 0 点赞 0 评论 476 浏览 评分:0.0
编写题解 1597: 蓝桥杯算法训练VIP-提货单 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> #include<iomanip> using namespace std; struct…… 题解列表 2022年05月20日 0 点赞 0 评论 589 浏览 评分:0.0
编写题解 1586: 蓝桥杯算法训练VIP-A+B problem 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int a,b; cin>>a>>b;…… 题解列表 2022年05月20日 0 点赞 0 评论 398 浏览 评分:0.0