2814: 正常血压 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,a,b,sum=0,maxx=0;//定…… 题解列表 2024年02月06日 0 点赞 0 评论 214 浏览 评分:9.9
用字符串简单解决 摘要:解题思路:注意事项:注意计算时要把字符串转换为整型才可以计算!参考代码:#include <iostream>using namespace std;int main(){ string m; …… 题解列表 2024年02月06日 0 点赞 0 评论 191 浏览 评分:9.9
c++(格式工整清晰,容易理解) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; void solve(int a,int b) { int sum_a=0,…… 题解列表 2024年02月06日 0 点赞 0 评论 198 浏览 评分: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 评论 366 浏览 评分:2.0
C++ : 数组逆序重放 摘要:解题思路: 超级超级简单注意事项: 注意逆序输出的时候,最大的位置是 n-1,不是 n 了参考代码:#include<iostream>using namespace std;int main()…… 题解列表 2024年02月05日 0 点赞 0 评论 377 浏览 评分:9.9
利用string容器轻松拿捏 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>#include<algorithm> using namespace std;//因为字母A到Z是1…… 题解列表 2024年02月05日 0 点赞 0 评论 202 浏览 评分:9.9
C++ 编写题解 1098: 陶陶摘苹果 摘要:解题思路: 注意事项: 参考代码: #include<iostream>using namespace std;int main(){ int a[11],high,count=0; for (int…… 题解列表 2024年02月05日 1 点赞 0 评论 397 浏览 评分:10.0
1306: 老管家的忠诚2 题解 摘要: # 题目大意 给你一个序列 $$a$$,再给你一个操作类型,当操作类型为1时,让你修改 $$a_x$$ 为 $$y$$, 当操作类型为2时,询问区间 $$l,r$$ 的最小值。 # 思路 区间…… 题解列表 2024年02月05日 0 点赞 0 评论 241 浏览 评分:9.9