题解列表

筛选

pair来写容易很多

摘要:解题思路:pair第一个存学号第二个存成绩然后用bool来进行判断加上sort排序注意事项:参考代码:#include<iostream>#include<algorithm>using namesp……

1308: 表达式计算2

摘要:```cpp #include using namespace std; const int N=10001; int a[N],b[N]; char op,k; bool key,mar……

哪需要那么复杂几步的事

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

单词的长度

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

1307: 表达式计算1

摘要:```cpp #include using namespace std; const int N=10001; int a[N],b[N]; char op,k; bool key,mar……

简单又实用,看不懂请打死我

摘要:解题思路:用排序函数sort对输入的数据进行排序,使用降重函数unique对输入的数据进行降重并输出注意事项:使用sort和unique前添加头文件#include<algorithm>参考代码:#i……

个人觉得这解法是非常简单解法

摘要:解题思路我觉得代码能看懂,x=a/b,想要求x的最小,则x=a/(b+1)+1即可,x=a/b已经是最大的了。注意事项:参考代码:#include<iostream>#include<algorith……