题解列表

筛选

题解 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 ……

去掉空格(简单C++)

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