2003: 统计字符个数 摘要:看清楚题目是输入十个字符!!!这里被坑了一手。#include <bits/stdc++.h> using namespace std; int main(){ char s[11]…… 题解列表 2022年02月27日 0 点赞 0 评论 228 浏览 评分:0.0
1978: 分类计算 摘要:无脑打印。#include <bits/stdc++.h> using namespace std; int main(){ int a,b; cin >> a >> b;…… 题解列表 2022年02月27日 0 点赞 0 评论 196 浏览 评分:0.0
1598: 蓝桥杯算法训练VIP-学生成绩 摘要:学 Java 去了好久没刷了,来一题练练手感。直接用 STL 自带的稳定排序函数,切记不能用 sort(),需要用 stable_sort()。#include <bits/stdc++.h> us…… 题解列表 2022年02月27日 0 点赞 0 评论 196 浏览 评分:0.0
1025: [编程入门]数组插入处理 摘要:解题思路:从头元素开始遍历数组,当找到第一个比待插数大的元素时,就把待插数插到这个元素前面。不过本题不需要真正插入,只需要输出插入后的数组,相对来说比较简单。注意事项:有序数组,等到元素较多的时候就应…… 题解列表 2022年02月27日 0 点赞 0 评论 597 浏览 评分:9.9
[STL训练]美国大选 摘要:```cpp #include using namespace std; #include int main(){ int N; while((cin>>N)&&N!=0){ i…… 题解列表 2022年02月27日 0 点赞 0 评论 866 浏览 评分:7.3
1024: [编程入门]矩阵对角线求和 摘要:解题思路:由于本题明确了是3*3数组,所以实际上把代码写成matrix[0] + matrix[4] + matrix[8]都能通过。关键在于,如果想写成一个子函数,该如何把二维数组作为参数传入。首先…… 题解列表 2022年02月27日 0 点赞 1 评论 1062 浏览 评分:9.9
[STL训练]sort练习 摘要:```cpp #include using namespace std; #include int main(){ int n,m; cin >> n >> m; list l…… 题解列表 2022年02月27日 0 点赞 0 评论 285 浏览 评分:0.0
[STL训练]{A} + {B} 摘要:解题思路:很简单,自己看。注意事项:set头文件:#include<set> 定义: set<typename> name; 注意哦,set只能通过迭代器(iterator)访问:set<typen…… 题解列表 2022年02月27日 0 点赞 0 评论 279 浏览 评分:0.0
1023: [编程入门]选择排序 摘要:解题思路:选择排序的原理:从数组的第一个数开始遍历整个数组,找到最小数并于数组的第一个数交换,下一轮再从第二个数开始遍历,以此类推。注意事项:(1)在找bug时浪费了大量时间,因为我不会用断点,deb…… 题解列表 2022年02月27日 0 点赞 0 评论 686 浏览 评分:9.9
蓝桥杯算法提高VIP-去注释-题解(C++代码)-修改 摘要:#include<iostream>using namespace std;int main(){ char c; while((c=cin.get())!=EOF){ if…… 题解列表 2022年02月27日 0 点赞 0 评论 222 浏览 评分:0.0