蓝桥杯2016年第七届真题-密码脱落 摘要:解题思路:就是公共最长序列的模板套用注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int maxlen[1000][1000];int m…… 题解列表 2022年03月16日 0 点赞 0 评论 458 浏览 评分:9.9
优质题解 C++代码(代码简洁) 摘要: ###解法 ------------ #####S = x + (x + d1) + (x + d1 + d2) + (x + d1 + d2 + d3) +.... 所以: S = …… 题解列表 2022年03月16日 0 点赞 0 评论 1485 浏览 评分:8.7
蓝桥杯算法提高VIP-数字黑洞 摘要:#include<iostream>#include<algorithm>using namespace std;int cnt=0;int fun(int n){ int sum[4]; …… 题解列表 2022年03月16日 0 点赞 0 评论 220 浏览 评分:0.0
最长子序列 摘要:```cpp #include using namespace std; string s1; int ans = 0; const int L = 1000010; int arr[L]…… 题解列表 2022年03月16日 0 点赞 0 评论 336 浏览 评分:0.0
树状数组(注意身高为0) 摘要:```cpp #include using namespace std; typedef long long ll; #define lowbit(x) ((x)&-(x)) const i…… 题解列表 2022年03月16日 0 点赞 0 评论 289 浏览 评分:9.9
动态规划 线性dp 摘要:```cpp #include using namespace std; int INT = 1e9; const int L = 1000; int n; int dp[L][L], a…… 题解列表 2022年03月16日 0 点赞 0 评论 440 浏览 评分:9.9
蓝桥杯2020年第十一届省赛真题-单词分析 摘要:水题 ```cpp #include #include #include using namespace std; string s; int a[26] = { 0 }; int m…… 题解列表 2022年03月16日 0 点赞 0 评论 552 浏览 评分:9.9
多重背包 动态规划 摘要:```cpp #include using namespace std; const int L = 5000 + 50; int n, m; int v[L], w[L], q[L]; …… 题解列表 2022年03月16日 0 点赞 0 评论 311 浏览 评分:0.0
完全背包问题,动态规划!! 摘要:其实和01背包问题差别不大,01背包每件物品只能选一个,多重背包每件物品在不超过背包体积的条件下可以选择无限个! ```cpp #include using namespace std; …… 题解列表 2022年03月16日 0 点赞 0 评论 328 浏览 评分:9.9
01背包问题 动态规划 摘要:```cpp #include using namespace std; const int L = 5000 + 50; int n, m; int v[L], w[L]; int dp…… 题解列表 2022年03月16日 0 点赞 0 评论 303 浏览 评分:0.0