题解列表

筛选

[STL训练]sort练习

摘要:```cpp #include using namespace std; #include int main(){ int n,m; cin >> n >> m; list l……

1598: 蓝桥杯算法训练VIP-学生成绩

摘要:学 Java 去了好久没刷了,来一题练练手感。直接用 STL 自带的稳定排序函数,切记不能用 sort(),需要用 stable_sort()。#include <bits/stdc++.h> us……

最大公约数与最小公倍数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max(int a,int b){    if(b==0)    {        return a;    }    retu……

1978: 分类计算

摘要:无脑打印。#include <bits/stdc++.h> using namespace std; int main(){     int a,b;     cin >> a >> b;……

2003: 统计字符个数

摘要:看清楚题目是输入十个字符!!!这里被坑了一手。#include <bits/stdc++.h> using namespace std; int main(){     char s[11]……

1989: 奇数个数

摘要:用字符串保存起来遍历。#include <bits/stdc++.h> using namespace std; int main(){     string s;     cin >> ……

核电站问题

摘要:解题思路:就算是抄袭也要光明正大的抄袭,https://blog.csdn.net/zujiasheng/article/details/80357144?自己看吧!注意事项:参考代码:#includ……