题解列表

筛选

2004: 统计成绩

摘要:#include<bits/stdc++.h> using namespace std; int main(){     double sum(0);     int x,fail(0);……

1749: 字符排序

摘要:#include<bits/stdc++.h> using namespace std; int main(){     int n;     cin >> n;     getchar……

2002: 计算数字个数

摘要:#include<bits/stdc++.h> using namespace std; int main(){     string s;     getline(cin,s);   ……

2024: 链表删除练习

摘要:有头结点的单链表,用尾插法导入数据。#include<bits/stdc++.h> using namespace std;   struct node{     int data;    ……

c++常规做法,一画图就很简单了

摘要:解题思路:画图,看一下注意事项:注意c++保留两位小数,和他的头文件参考代码:#include<iostream>#include<iomanip>using namespace std;int ma……

2058: [STL训练]Who&#039;s in the Middle

摘要:把 n 个数先后压进向量,然后排序,最后直接用索引打印中位数。#include<bits/stdc++.h> using namespace std; int main(){     int……

2071: [STL训练]壮志难酬

摘要:用 find 函数找到小数点的位置,再加上往后移动的位数就是所求数字。#include<bits/stdc++.h> using namespace std; int main(){    ……