2811:救援 笨办法求解 摘要:#include <iostream> #include <cmath> using namespace std; int main(){ int n; cin>>n; double…… 题解列表 2023年04月11日 0 点赞 0 评论 380 浏览 评分:9.9
2809: 菲波那契数列 使用数组解决问题 摘要:解题思路:定义一个数组,并给数组的前两位赋值为1,使用for循环来计算第k位的数字大小参考代码:#include <iostream> using namespace std; int main(…… 题解列表 2023年04月11日 0 点赞 0 评论 292 浏览 评分:9.9
2808买房子,使用c++解决 摘要:#include <iostream> using namespace std; int main() { int N, K; cin >> N >> K; do…… 题解列表 2023年04月11日 0 点赞 0 评论 249 浏览 评分:8.0
极简 线性DP 摘要:## 试题E: 接龙数列 ### 题意描述 对于一个长度为K 的整数数列:$A_1,A_2..A_K$,我们称之为接龙数列当且仅当$A_i$ 的首位数字恰好等于$A_{i−1}$ 的末位数…… 题解列表 2023年04月10日 0 点赞 7 评论 3307 浏览 评分:9.5
优质题解 倍增LCA算法 摘要:[完整题解](https://blog.csdn.net/qq_60775983/article/details/130043884) ## 试题I: 景区导游 ### 题意描述 某景区…… 题解列表 2023年04月10日 0 点赞 0 评论 1772 浏览 评分:7.7
2799: 奥运奖牌计数 摘要:解题思路:首先读入n,然后用循环读入每一天的金、银、铜牌数目,并将其累加到相应的变量中。最后输出累加后的金、银、铜牌总数以及总奖牌数。参考代码:#include <iostream>using nam…… 题解列表 2023年04月10日 0 点赞 0 评论 339 浏览 评分:9.9
蓝桥杯2023年第十四届省赛真题-翻转 (纯模拟) 摘要:解题思路: 挺简单的,模拟过程注意事项: 注意if语句的判断参考代码:#include <bits/stdc++.h> using namespace std; string a,b; i…… 题解列表 2023年04月10日 0 点赞 7 评论 1760 浏览 评分:9.9
2798: 整数序列的元素最大跨度值(求最大值和最小值) 摘要:解题思路:使用自定义函数,求出最大值和最小值,然后最大值减去最小值即为解参考代码:#include <iostream>int max(int arr[],int n);int min(int arr…… 题解列表 2023年04月10日 0 点赞 0 评论 203 浏览 评分:0.0
并查集与路径压缩 摘要:利用并查集的路径压缩,快速找到最左和最右的可用节点 ```cpp #include using namespace std; #define pr pair #define ll long …… 题解列表 2023年04月10日 0 点赞 1 评论 512 浏览 评分: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 评论 673 浏览 评分:8.7