[STL训练]sort练习 摘要:```cpp #include using namespace std; #include int main(){ int n,m; cin >> n >> m; list l…… 题解列表 2022年02月27日 0 点赞 0 评论 454 浏览 评分:0.0
1598: 蓝桥杯算法训练VIP-学生成绩 摘要:学 Java 去了好久没刷了,来一题练练手感。直接用 STL 自带的稳定排序函数,切记不能用 sort(),需要用 stable_sort()。#include <bits/stdc++.h> us…… 题解列表 2022年02月27日 0 点赞 0 评论 397 浏览 评分:0.0
最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max(int a,int b){ if(b==0) { return a; } retu…… 题解列表 2022年02月27日 0 点赞 0 评论 315 浏览 评分:0.0
1978: 分类计算 摘要:无脑打印。#include <bits/stdc++.h> using namespace std; int main(){ int a,b; cin >> a >> b;…… 题解列表 2022年02月27日 0 点赞 0 评论 341 浏览 评分:0.0
2003: 统计字符个数 摘要:看清楚题目是输入十个字符!!!这里被坑了一手。#include <bits/stdc++.h> using namespace std; int main(){ char s[11]…… 题解列表 2022年02月27日 0 点赞 0 评论 424 浏览 评分:0.0
1989: 奇数个数 摘要:用字符串保存起来遍历。#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> …… 题解列表 2022年02月27日 0 点赞 0 评论 381 浏览 评分:0.0
1443: 蓝桥杯历届试题-数字游戏 java 摘要:- 思路一  摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Test { public static void main(Strin…… 题解列表 2022年02月28日 0 点赞 0 评论 405 浏览 评分:0.0