题解列表

筛选

2792: 三角形判断

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() {     int a,b,c;     cin>>a>>……

选择排序一般写法

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cstring>#include <algorithm>using namespace std;void cho……
优质题解

Yu金币简洁易懂写法

摘要: ##解析: 本题无法直接循环天数和金币数。 但是发现一个规律,连续的n天都发放n枚金币。 我们可以用while循环解决连续n天发放n枚金币。 **我的解法:** sum记……

数位排序暴力

摘要:解题思路:暴力注意事项:无参考代码:#pragma GCC optimize(3) #include <bits/stdc++.h> using namespace std; #define e……

题解 2814: 正常血压

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d=0,e=0,res=0; cin>>……

2822: 求分数序列和

摘要:``` #include using namespace std; int main(){ int n; double c=0,sum=0,a=3,b=2,c1=2,y=0; cin……

题解 2813: 药房管理

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d=0,e=0; cin>>a>>b; ……