蓝桥杯2022年第十三届省赛真题-数位排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int i,n,m,t,s; cin>>n>>m…… 题解列表 2024年03月05日 0 点赞 0 评论 356 浏览 评分:0.0
出差,dij算法 摘要:解题思路:使用图dijistra算法,根据题目进行一点变形即可注意事项:注意算法时间复杂度,以及一些小细节,代码中都有详细注释参考代码:#include<bits/stdc++.h>#define M…… 题解列表 2024年03月05日 0 点赞 0 评论 569 浏览 评分:9.9
合法C标识符 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s; cin>>s; for(int i=0;…… 题解列表 2024年03月05日 0 点赞 0 评论 318 浏览 评分:0.0
二分查找求方案数 (最大值) 摘要:二分查找 巧克力划分的方案数 (最大值) ```c++ #include using namespace std; const int N = 1e5+10; typedef long …… 题解列表 2024年03月05日 0 点赞 0 评论 385 浏览 评分:0.0
双向循环链表:C++面向对象 摘要: ###### 参考代码 ```cpp #include using namespace std; struct node { int data; node* …… 题解列表 2024年03月04日 0 点赞 0 评论 413 浏览 评分:9.9
图的遍历-DFS深度优先搜索(C++) 摘要:#include<iostream> using namespace std; #define MAX_VERTEX_NUM 20 // 定义最大结点数 int graph[MAX_VERTEX…… 题解列表 2024年03月04日 0 点赞 0 评论 537 浏览 评分:0.0
2798: 整数序列的元素最大跨度值 摘要:注意事项: 给max和min赋值时注意,一定要让这两个值有改动,否则记录的不是输入的值,max够小,min够大参考代码:#include<iostream> using namespace s…… 题解列表 2024年03月04日 0 点赞 0 评论 502 浏览 评分:0.0
暴力解(抛弃大脑,回归原始) 摘要:解题思路:没学几天算法 不要喷,就是排序之后 放到队列里,然后扫过去注意事项:参考代码:#include<bits/stdc++.h>using namespace std;struct Poin…… 题解列表 2024年03月04日 0 点赞 0 评论 769 浏览 评分:9.9
2046:输出全排列 摘要:解题思路:注意事项:printf代替cout可避免超时参考代码:#include<iostream>using namespace std;const int N=10;int num[N];bool…… 题解列表 2024年03月04日 0 点赞 0 评论 356 浏览 评分:0.0
输出亲朋字符串 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s; getline(cin,s); for(…… 题解列表 2024年03月04日 0 点赞 0 评论 281 浏览 评分:2.0