蓝桥杯2017年第八届真题-包子凑数 (背包DP) 摘要:####解题思路 设有 N 个蒸笼,每个蒸笼能装 $$A_1, A_2,\dots, A_N$$ 个包子。 1.当 $$gcd(A_1, A_2,\dots, A_N)!=1$$ 时,则都不互质,…… 题解列表 2023年03月26日 0 点赞 0 评论 398 浏览 评分:9.9
1072: 汽水瓶 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> #include<cmath> #include<algorithm> #include…… 题解列表 2023年03月26日 0 点赞 0 评论 163 浏览 评分:0.0
蓝桥杯2021年第十二届省赛真题-双向排序 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cstring>#include <algorithm>#include <cmath>using namesp…… 题解列表 2023年03月26日 0 点赞 0 评论 816 浏览 评分:9.9
【蓝桥杯】二分法求解--分巧克力 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; typedef long long ll; const int vinf = 100…… 题解列表 2023年03月26日 0 点赞 0 评论 202 浏览 评分:0.0
【蓝桥杯】分巧克力--二分查找 摘要:解题思路:注意事项:参考代码://分巧克力问题--标准的二分模板题 //判断条件以及二分上下界 #include <bits/stdc++.h> using namespace std; c…… 题解列表 2023年03月25日 0 点赞 0 评论 348 浏览 评分:9.0
蓝桥杯2022年第十三届省赛真题-统计子矩阵(前缀和 + 双指针) 摘要:####解题思路 1.求每列前缀和(i,j 为上下边界,则可看成用一维解决)。 2.用双指针 l, r 维护左右边界,当 r 边界确定时(找到了 sum > k 的区间),左边界 l 往右移寻找符…… 题解列表 2023年03月25日 1 点赞 1 评论 1203 浏览 评分:9.0
【贪心思想】巧克力 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> #define int long long using namespace std; const int N = 1…… 题解列表 2023年03月25日 0 点赞 0 评论 326 浏览 评分:0.0
矩阵交换行c++题解 摘要:解题思路:按吧按吧按吧按吧按吧按吧按吧按吧按吧注意事项:啥也没有参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a[6]…… 题解列表 2023年03月25日 0 点赞 0 评论 224 浏览 评分:8.0
dfs+贪心解法 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int n,k;int dfs(int t){ if(t<=n) { …… 题解列表 2023年03月25日 0 点赞 0 评论 307 浏览 评分:0.0
数组切分 动态规划 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e5+10;in…… 题解列表 2023年03月25日 0 点赞 0 评论 342 浏览 评分:0.0