题解 1124: C语言训练-大、小写问题 摘要:###思路 ~~没有~~ #注意事项 ##需要注意空格!!! ###代码 ```cpp #include using namespace std; char a[10005]; in…… 题解列表 2024年02月06日 0 点赞 0 评论 271 浏览 评分:9.9
题解 1031: [编程入门]自定义函数之字符串反转 摘要:###思路 逆序输出即可 ###注意事项 要写`for(int i=l-1;i>=0;i--)` 1.逆序 2.***l-1*** ###代码 ```cpp #include usi…… 题解列表 2024年02月06日 0 点赞 0 评论 368 浏览 评分:9.9
题解 1000: [竞赛入门]简单的a+b 摘要:###思路 `while(cin>>)`即可 ###代码 ```cpp #include using namespace std; int main() { int a,b; …… 题解列表 2024年02月06日 1 点赞 0 评论 278 浏览 评分:9.9
1022: [编程入门]筛选N以内的素数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; for(i…… 题解列表 2024年02月06日 1 点赞 0 评论 214 浏览 评分:0.0
2814: 正常血压 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,a,b,sum=0,maxx=0;//定…… 题解列表 2024年02月06日 0 点赞 0 评论 213 浏览 评分:9.9
用字符串简单解决 摘要:解题思路:注意事项:注意计算时要把字符串转换为整型才可以计算!参考代码:#include <iostream>using namespace std;int main(){ string m; …… 题解列表 2024年02月06日 0 点赞 0 评论 188 浏览 评分:9.9
c++(格式工整清晰,容易理解) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; void solve(int a,int b) { int sum_a=0,…… 题解列表 2024年02月06日 0 点赞 0 评论 196 浏览 评分:9.9
双指针,从输入的角度出发,sort刷一遍,在d时间段内找到获赞数符合条件的id,双指针来处理其中重复的操作,使得每次只会++,比多重循环减少了大量时间,由哦(n2)减少到接近o(n) 摘要: ``` #include #define int long long #define x first #define y second using namespace std; …… 题解列表 2024年02月06日 0 点赞 0 评论 193 浏览 评分:0.0
C++: 计算星期几 摘要:解题思路: 利用数组存放星期几,较少代码重复量注意事项: 注意每次都要循环都要进行%取余运算,不然会造成越界参考代码: #include<iostream>…… 题解列表 2024年02月06日 0 点赞 0 评论 365 浏览 评分:2.0
C++ : 数组逆序重放 摘要:解题思路: 超级超级简单注意事项: 注意逆序输出的时候,最大的位置是 n-1,不是 n 了参考代码:#include<iostream>using namespace std;int main()…… 题解列表 2024年02月05日 0 点赞 0 评论 376 浏览 评分:9.9