2221: 蓝桥杯算法训练-素因子去重 摘要: #include using namespace std; int main() { long long n; long lo…… 题解列表 2024年04月08日 0 点赞 0 评论 166 浏览 评分:0.0
2684: 蓝桥杯2022年第十三届省赛真题-数位排序-sort 摘要: #include #include using namespace std; bool cmp(int x,int y){ int sum1=0…… 题解列表 2024年04月08日 4 点赞 0 评论 358 浏览 评分:10.0
汽水瓶 简单代码 C++实现 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int n; //n表示空瓶数量 while(cin>>…… 题解列表 2024年04月08日 0 点赞 0 评论 148 浏览 评分:8.0
信息学奥赛一本通T1258- 数字金字塔 摘要:解题思路:DP, 逆推注意事项:参考代码:#include<iostream> #include<cstring> #include<algorithm> using namespace std…… 题解列表 2024年04月08日 0 点赞 0 评论 181 浏览 评分:9.9
2579: 蓝桥杯2020年第十一届省赛真题-网络分析 摘要:解题思路:在两个集合合并时将每个节点的当前大小保存,将时间复杂度从(nm)压到了(n2)注意事项:注意使用启发式合并,不然还是会超时参考代码:#include<bits/stdc++.h> usin…… 题解列表 2024年04月08日 0 点赞 0 评论 320 浏览 评分:9.9
3048: 抓住那头牛 摘要:解题思路: BFS: 三种移动方向 + 1, - 1, 2 * x注意事项:参考代码:#include<iostream> #include<cstring> using namespace st…… 题解列表 2024年04月08日 1 点赞 0 评论 326 浏览 评分:9.9
只用if_else不用循环,注释详细 摘要:解题思路:用总刷题数除以一周的刷题总数,从而将天数问题转化为一个周期内的分段问题注意事项:注意分段做到不重不漏参考代码:#include<bits/stdc++.h> #define ll long…… 题解列表 2024年04月08日 2 点赞 0 评论 414 浏览 评分:10.0
蓝桥杯2020年第十一届国赛真题-答疑 C++ 排序 贪心 摘要:解题思路:在前面都选择花费总时间最少的 最后的答案一定是花费时间最少的注意事项:记得开 long long参考代码:#include<bits/stdc++.h>#define int long lo…… 题解列表 2024年04月08日 0 点赞 0 评论 309 浏览 评分:0.0
2835: 计算书费 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;double a[10]= { 28.9,32.7,45.6,78,35,86.2…… 题解列表 2024年04月08日 0 点赞 0 评论 651 浏览 评分:9.9
2836: 数组逆序重放 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a[100000];//不限制范围int main(){ …… 题解列表 2024年04月08日 0 点赞 0 评论 316 浏览 评分:9.9