2799: 奥运奖牌计数 摘要:解题思路:首先读入n,然后用循环读入每一天的金、银、铜牌数目,并将其累加到相应的变量中。最后输出累加后的金、银、铜牌总数以及总奖牌数。参考代码:#include <iostream>using nam…… 题解列表 2023年04月10日 0 点赞 0 评论 348 浏览 评分:9.9
蓝桥杯2023年第十四届省赛真题-翻转 (纯模拟) 摘要:解题思路: 挺简单的,模拟过程注意事项: 注意if语句的判断参考代码:#include <bits/stdc++.h> using namespace std; string a,b; i…… 题解列表 2023年04月10日 0 点赞 7 评论 1771 浏览 评分:9.9
2798: 整数序列的元素最大跨度值(求最大值和最小值) 摘要:解题思路:使用自定义函数,求出最大值和最小值,然后最大值减去最小值即为解参考代码:#include <iostream>int max(int arr[],int n);int min(int arr…… 题解列表 2023年04月10日 0 点赞 0 评论 215 浏览 评分:0.0
并查集与路径压缩 摘要:利用并查集的路径压缩,快速找到最左和最右的可用节点 ```cpp #include using namespace std; #define pr pair #define ll long …… 题解列表 2023年04月10日 0 点赞 1 评论 521 浏览 评分:8.4
使用stl的双向链表+数组 摘要:```cpp #include using namespace std; #define pr pair #define ll long long const int N = 5e5 + 5…… 题解列表 2023年04月10日 0 点赞 0 评论 683 浏览 评分:8.7
奶奶个蛋,比赛的时候写的一样,但是肯定不对 摘要:#include using namespace std; #define int long long int n; const int N=1e5+1; struct fly { i…… 题解列表 2023年04月10日 1 点赞 1 评论 1274 浏览 评分:2.6
题目 1635: 蓝桥杯算法训练VIP-整数平均值 摘要:解题思路:看了很多人的代码,发现用函数和指针来解决问题的不多,写了一下代码,抛砖引玉吧#include <iostream>using namespace std;double arrayAvg(in…… 题解列表 2023年04月10日 0 点赞 0 评论 187 浏览 评分:0.0
线性dp(感觉就是个桶) 摘要:#include using namespace std; #define int long long const int N=1e5+1; int a[N],b[N]; int f[N];…… 题解列表 2023年04月10日 0 点赞 0 评论 751 浏览 评分:2.2
前驱 后驱数组 + 优先队列 摘要:# 思路 ## 如何动态维护这个序列 对于这题我们需要维护一个前驱数组和后驱数组,当选中下标i作为被删除点时候进行如下操作  { int n,x3[20][20],num[20];…… 题解列表 2023年04月09日 0 点赞 0 评论 191 浏览 评分:0.0