1267: A+B Problem(c++)题解 摘要:写这篇题解完全是消磨时间 代码 ```cpp #include using namespace std; int main() { int a,b; while(cin…… 题解列表 2023年05月04日 0 点赞 0 评论 553 浏览 评分:6.0
3143: 蓝桥杯2023年第十四届省赛真题-更小的数 摘要:```cpp #include using namespace std; string a; int ans; int main() { cin>>a; for(int…… 题解列表 2023年05月04日 0 点赞 0 评论 1157 浏览 评分:8.9
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 评论 2032 浏览 评分:9.0
自定义函数之字符串反转 摘要:#include #include int main(){ char a[100]; int i,j; gets(a);//从输入缓存中读取多个字符,遇到回车符时,结…… 题解列表 2023年05月04日 0 点赞 0 评论 271 浏览 评分:0.0
[编程入门]字符串连接 摘要:解题思路:将字符串输入后,使用puts()函数进行输出,在输出a后自动回车,得到结果不符;将字符串a单个输出后输出b注意事项:gets当遇到换行符\n或者EOF时停止参考代码:#include<std…… 题解列表 2023年05月04日 0 点赞 0 评论 280 浏览 评分: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 评论 320 浏览 评分:0.0
[编程入门]阶乘求和 摘要:一、解题思路:for()循环C参考代码:#include int main() { long long Sn = 0, a = 1; //long long类型,占位符是%lld int n…… 题解列表 2023年05月05日 0 点赞 0 评论 283 浏览 评分:0.0
[编程入门]求和训练 摘要:一、解题思路:C参考代码:#include <stdio.h> int main() { double a, b, c, s1 = 0, s2 = 0, s3 = 0, s = 0; s…… 题解列表 2023年05月05日 0 点赞 0 评论 288 浏览 评分:0.0
绝对值排序!!!一看就懂 摘要:解题思路:1.首先输入要输入的行数(遇到0结束)我们与n相与,当n=0时,跳出循环。2.我们把我们要写入的数据放入我们定义的的数组里面,然后对数组进行排序。注意事项:注意换行参考代码:#include…… 题解列表 2023年05月05日 0 点赞 0 评论 319 浏览 评分:9.9
终于也是会了这么经典的题目 摘要:解题思路:注意事项:偶数灯是开着,奇数灯是开着,其实不难啊,换个思路,一定要有思考的抽象的计算思维参考代码:n,m=map(int,input().split())l=[0 for i in rang…… 题解列表 2023年05月05日 0 点赞 0 评论 430 浏览 评分:0.0