2808买房子,使用c++解决 摘要:#include <iostream> using namespace std; int main() { int N, K; cin >> N >> K; do…… 题解列表 2023年04月11日 0 点赞 0 评论 395 浏览 评分:8.0
极简 线性DP 摘要:## 试题E: 接龙数列 ### 题意描述 对于一个长度为K 的整数数列:$A_1,A_2..A_K$,我们称之为接龙数列当且仅当$A_i$ 的首位数字恰好等于$A_{i−1}$ 的末位数…… 题解列表 2023年04月10日 0 点赞 7 评论 3489 浏览 评分:9.5
优质题解 倍增LCA算法 摘要:[完整题解](https://blog.csdn.net/qq_60775983/article/details/130043884) ## 试题I: 景区导游 ### 题意描述 某景区…… 题解列表 2023年04月10日 0 点赞 0 评论 2007 浏览 评分:7.7
2799: 奥运奖牌计数 摘要:解题思路:首先读入n,然后用循环读入每一天的金、银、铜牌数目,并将其累加到相应的变量中。最后输出累加后的金、银、铜牌总数以及总奖牌数。参考代码:#include <iostream>using nam…… 题解列表 2023年04月10日 0 点赞 0 评论 444 浏览 评分:9.9
蓝桥杯2023年第十四届省赛真题-翻转 (纯模拟) 摘要:解题思路: 挺简单的,模拟过程注意事项: 注意if语句的判断参考代码:#include <bits/stdc++.h> using namespace std; string a,b; i…… 题解列表 2023年04月10日 0 点赞 7 评论 1869 浏览 评分:9.9
2798: 整数序列的元素最大跨度值(求最大值和最小值) 摘要:解题思路:使用自定义函数,求出最大值和最小值,然后最大值减去最小值即为解参考代码:#include <iostream>int max(int arr[],int n);int min(int arr…… 题解列表 2023年04月10日 0 点赞 0 评论 320 浏览 评分:0.0
并查集与路径压缩 摘要:利用并查集的路径压缩,快速找到最左和最右的可用节点 ```cpp #include using namespace std; #define pr pair #define ll long …… 题解列表 2023年04月10日 0 点赞 1 评论 608 浏览 评分: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 评论 857 浏览 评分: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 评论 1525 浏览 评分:2.6
题目 1635: 蓝桥杯算法训练VIP-整数平均值 摘要:解题思路:看了很多人的代码,发现用函数和指针来解决问题的不多,写了一下代码,抛砖引玉吧#include <iostream>using namespace std;double arrayAvg(in…… 题解列表 2023年04月10日 0 点赞 0 评论 286 浏览 评分:0.0