上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: 增减序列题意:给定一个长度为 n 的数列 a... 阅读全文
posted @ 2020-05-07 22:20 BorisDimitri 阅读(167) 评论(0) 推荐(0)
摘要: 优化后的完全背包PS:DP优化的根本就是等价... 阅读全文
posted @ 2020-04-27 22:41 BorisDimitri 阅读(81) 评论(0) 推荐(0)
摘要: 完全背包1.状态表示a.集合:所有从第i个物... 阅读全文
posted @ 2020-04-27 22:04 BorisDimitri 阅读(62) 评论(0) 推荐(0)
摘要: 原题链接------------------------------------------------------------------------------------------------------... 阅读全文
posted @ 2020-04-25 11:51 BorisDimitri 阅读(57) 评论(0) 推荐(0)
摘要: 原题​#include using namespace std;string a;int main(){ cin>>a; int len=a.length(); int i=len-1; while(a[i]==... 阅读全文
posted @ 2020-04-04 22:11 BorisDimitri 阅读(53) 评论(0) 推荐(0)
摘要: 题目链接这题关于DP用f[i][j]表示横坐... 阅读全文
posted @ 2020-02-25 17:51 BorisDimitri 阅读(56) 评论(0) 推荐(0)
摘要: P1120 小木棍 [数据加强版]题解:#include #include #include int n, cnt, tot, maxn, minn, tm[70];void dfs(int res,int su... 阅读全文
posted @ 2020-02-18 17:41 BorisDimitri 阅读(55) 评论(0) 推荐(0)
摘要: CF11A Increasing Sequence入门题,就不解释了题解:算法复杂度为O(n)#include #include using namespace std;int a[2001];int main(... 阅读全文
posted @ 2020-02-16 18:01 BorisDimitri 阅读(80) 评论(0) 推荐(0)
摘要: CF1B Spreadsheets题解:#include using namespace std;char x[1000010];int main() { int n,i,j,k; cin>>n; for(i=1... 阅读全文
posted @ 2020-02-16 13:54 BorisDimitri 阅读(55) 评论(0) 推荐(0)
摘要: CF25A IQ test题解:#include using namespace std;int a[101];int main(int argc, char **argv){ int n; cin>... 阅读全文
posted @ 2020-02-16 13:51 BorisDimitri 阅读(627) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页