题解列表

筛选

计算数字个数

摘要:解题思路:用字符串注意事项:i的下标是0参考代码:#include<bits/stdc++.h>using namespace std;string z;long long s;int main(){……

二级C语言-寻找矩阵最值 题解

摘要:解题思路:这题我用了伪二维的方法来比大小找最大的数,再用两个变量来分别标记他的横竖位置。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;i……

[编程入门]Sn的公式求和

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

二级C语言-温度转换 题解

摘要:解题思路:这题就是转换温度,从-100度到150度。注意事项:每个温度隔着5度!参考代码:#include<bits/stdc++.h>using namespace std;int f;int wd……

[编程入门]成绩评定

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n;int main(){    scanf("%d",&n);    if……

Minesweeper遍历

摘要:参考代码:#include<iostream> #include<cstring> using namespace std; int dx[8]={1,0,-1,0,1,1,-1,-1}; i……

二级C语言-分段函数

摘要:解题思路:直接按照题目的意思判断输出。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;double x;double f(double x……