1952: 求长方形面积 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<fstream>#include<algorithm>using namespace std;long long a…… 题解列表 2022年05月20日 0 点赞 0 评论 301 浏览 评分: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 评论 376 浏览 评分:0.0
【欧几里得算法】求解最大公约数和最小公倍数 摘要:解题思路:假如需要求 1997 和 615 两个正整数的最大公约数,用欧几里得算法,是这样进行的:1997 / 615 = 3 (余 152)615 / 152 = 4(余7)152 / 7 = 21…… 题解列表 2022年05月20日 0 点赞 0 评论 461 浏览 评分: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 评论 414 浏览 评分:0.0
编写题解 1598: 蓝桥杯算法训练VIP-学生成绩 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> #include<algorithm> #include<vector> using na…… 题解列表 2022年05月20日 0 点赞 0 评论 432 浏览 评分:0.0
优质题解 1132: C语言训练-最大数问题 只用套一个while 最简单不绕的解法 摘要:## 解题思路 比谁大问题不难,本题难点在于判断-1退出和全负数情况下如何判断的问题。 如何一直输入在提交窗口就有示例代码,用`while(~scanf)`,退出条件写`if(Num == -1)…… 题解列表 2022年05月20日 1 点赞 0 评论 1815 浏览 评分:8.0
【cctype字符函数库】求解字符串分类统计 摘要:解题思路:利用cctype字符函数库解决问题cctype库内函数isalnum(c); 如果参数是字母或数字,函数就返回true,否则返回falseisalpha(c); 如果参数是字母,函数返回tr…… 题解列表 2022年05月20日 0 点赞 0 评论 467 浏览 评分:7.3
题解 1196: 去掉空格 摘要:解题思路:注意事项:参考代码:int main(){ char a[100]; int len,i; char end[]="End of file"; whi…… 题解列表 2022年05月20日 0 点赞 0 评论 594 浏览 评分:0.0
两种方法求平方和(C语言代码) 摘要:解题思路:方法一:直接数学中两数的平方和计算。注意:一个整数a的平方和不能写成a^2,而应该写成a*a;方法二:利用math库中的pow(x,y)函数,计算x的y次方。参考代码:方法一:#includ…… 题解列表 2022年05月20日 2 点赞 0 评论 5776 浏览 评分:6.9
蓝桥杯2021年第十二届国赛真题-翻转括号序列 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> #include<string> #include<algorithm> #inclu…… 题解列表 2022年05月20日 0 点赞 0 评论 924 浏览 评分:0.0