题解列表

筛选

直方图(C语言)

摘要:参考代码: ```c #include int main() { int n; scanf("%d",&n); int a[n]; int max=-1;//题目说……

2544: N以内累加求和

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

2547: [CSP-J2019] 数字游戏

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() {     string str;     int cou……

编写题解 2554: 交点

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

2757: 浮点数向零舍入

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

c++字符串简单解法 遍历字符串

摘要:解题思路:范围for函数,判断是否等于首个字符注意事项:参考代码:#include<iostream>using namespace std;int main(){ char ch1,ch2; str……

找最大数序列

摘要:参考代码: ```c #include #include int main() { int n; scanf("%d",&n); int max[n]; for(int i=……