1739: 成绩排序 摘要:结构体的排序,自己写一个 sort 函数的比较算法就好了。#include<bits/stdc++.h> using namespace std; struct student{ s…… 题解列表 2021年12月18日 0 点赞 0 评论 300 浏览 评分:0.0
暴力回文(c++代码) 摘要:解题思路:(此思路从回文那题搬运而来)从95860开始往后枚举若是回文数字(原数字与倒数字相同)自动跳出,判断回文的方法:从个位开始依次取余,每次取余后的结果和上次和的结果*10最后得到的值就是给这个…… 题解列表 2021年12月18日 0 点赞 0 评论 385 浏览 评分:9.9
1015: [编程入门]求和训练 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double a,b,c,d=0,e=0,f=0,Sn…… 题解列表 2021年12月17日 0 点赞 0 评论 217 浏览 评分:0.0
1169: 绝对值排序 摘要:C语言网刷题以来首次碰到用 pair 的题。#include<bits/stdc++.h> using namespace std; bool cmp(pair<int,int> &a,pa…… 题解列表 2021年12月17日 0 点赞 0 评论 205 浏览 评分:0.0
蓝桥杯算法训练VIP-判定字符位置----C风格和C++风格 摘要://这是用C++中的string来实现 ```cpp #include using namespace std; int main(void) { string str; cin>>…… 题解列表 2021年12月17日 0 点赞 0 评论 453 浏览 评分:9.9
蓝桥杯算法提高VIP-输出正反三角形------思路很强大 摘要:解题思路: 都在代码里了注意事项: 一定要看清楚前面还有几个空格!!参考代码:#include<iostream>using namespace std;int main(void){ i…… 题解列表 2021年12月17日 0 点赞 0 评论 334 浏览 评分:0.0
1129: C语言训练-排序问题<2> 摘要:降序排序,只需要给 sort 函数加第三个参数。#include<bits/stdc++.h> using namespace std; bool cmp(int a,int b){ …… 题解列表 2021年12月17日 0 点赞 0 评论 256 浏览 评分:0.0
1128: C语言训练-排序问题<1> 摘要:现成的 sort() 函数往上拍就完事儿了。#include<bits/stdc++.h> using namespace std; int main(){ vector<int>…… 题解列表 2021年12月17日 0 点赞 0 评论 187 浏览 评分:0.0
1114: C语言考试练习题_排列 摘要:无脑打印,没想到什么更好的解决办法。(文章先收藏了以后看看)#include<bits/stdc++.h> using namespace std; int main(){ vec…… 题解列表 2021年12月17日 0 点赞 0 评论 208 浏览 评分:0.0
1481: 蓝桥杯算法提高VIP-剪刀石头布 摘要:#include<bits/stdc++.h> using namespace std; int main(){ enum game {shitou = 0,bu = 1,jian…… 题解列表 2021年12月17日 0 点赞 0 评论 241 浏览 评分:0.0