[编程入门]阶乘求和 摘要:一、解题思路:for()循环C参考代码:#include int main() { long long Sn = 0, a = 1; //long long类型,占位符是%lld int n…… 题解列表 2023年05月05日 0 点赞 0 评论 254 浏览 评分:0.0
[编程入门]Sn的公式求和 摘要:一、解题思路:for()循环C参考代码:#include <stdio.h> int main(){ int n,a=2,s=0,sn=0; scanf("%d",&n); …… 题解列表 2023年05月05日 0 点赞 0 评论 299 浏览 评分:0.0
[编程入门]字符串连接 摘要:解题思路:将字符串输入后,使用puts()函数进行输出,在输出a后自动回车,得到结果不符;将字符串a单个输出后输出b注意事项:gets当遇到换行符\n或者EOF时停止参考代码:#include<std…… 题解列表 2023年05月04日 0 点赞 0 评论 263 浏览 评分:0.0
自定义函数之字符串反转 摘要:#include #include int main(){ char a[100]; int i,j; gets(a);//从输入缓存中读取多个字符,遇到回车符时,结…… 题解列表 2023年05月04日 0 点赞 0 评论 252 浏览 评分:0.0
3144: 蓝桥杯2023年第十四届省赛真题-颜色平衡树 摘要:```cpp #include #include #include using namespace std; const int N=2e5+1; int n,m,Son,cnt[N],c…… 题解列表 2023年05月04日 0 点赞 0 评论 2021 浏览 评分:9.0
3143: 蓝桥杯2023年第十四届省赛真题-更小的数 摘要:```cpp #include using namespace std; string a; int ans; int main() { cin>>a; for(int…… 题解列表 2023年05月04日 0 点赞 0 评论 1132 浏览 评分:8.9
1267: A+B Problem(c++)题解 摘要:写这篇题解完全是消磨时间 代码 ```cpp #include using namespace std; int main() { int a,b; while(cin…… 题解列表 2023年05月04日 0 点赞 0 评论 533 浏览 评分:6.0
3142: 蓝桥杯2023年第十四届省赛真题-平方差 摘要:```cpp #include using namespace std; int count=0; int main() { int n1,n2; scanf("%d%d…… 题解列表 2023年05月04日 0 点赞 2 评论 1751 浏览 评分:9.2
2997:梯形面积题解(C++) 摘要:一道非常简单的题目数学思想:如果这是一道数学题,非常的好做:150*2/15=20(cm)(15+25)*20/2=400(cm2)解题思路:已知梯形上、下底为15和25。令梯形的高为h,则由已知三角…… 题解列表 2023年05月04日 1 点赞 0 评论 780 浏览 评分:9.9
ISBN码(c语言代码) 摘要:```c #include char Check(char* strs); int main() { char ISBN[14] = { 0 }; gets(ISBN); …… 题解列表 2023年05月04日 0 点赞 0 评论 675 浏览 评分:9.9