题解列表

筛选

C++求一个闭区间内所有素数和

摘要:解题思路:注意事项:注意1不是素数,在判断是要注意参考代码:#include<iostream>using namespace std;bool check(int i)////用来检验一个数是否是素……

2908: 白细胞计数

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

题解 2906: 笨小猴

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int ZS(int n){ if(n<2) return 0; ……

两种解法(sort和快速排序)

摘要:解题思路:第一种是利用c++内置函数sort,第二种是利用快速排序.(建议掌握第二种)注意事项:参考代码:第一种:第二种:#include<bits/stdc++.h> using namespac……

不用二维数组来解题

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef struct st{ int g; char nam……

偶数求和和和和和

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

使用while循环

摘要:参考代码:#include<bits/stdc++.h>using namespace std;int huiwen(int i){    int k;    k=i;    int t,s=0;  ……

题解 2917: 奇数单增序列

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

结构体sort排序

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef struct M{ string s; float ……