该文被密码保护。 阅读全文
posted @ 2019-10-29 22:06 KBAI 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 小凯 老凯 阅读全文
posted @ 2019-11-12 15:33 KBAI 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 1 #include <cstdio> 2 #include <algorithm> 3 #include <cmath> 4 #include <cstring> 5 #include <cstdlib> 6 #include <queue> 7 #include <iostream> 8 #in 阅读全文
posted @ 2019-11-11 18:44 KBAI 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1 2015011233 M 34 14'30" P 3 3 8 20170508 2015011233 17:02:33 17:19:33 2.99 0'0" 3333 20170509 2015011233 17:12:15 17:38:46 3.01 2'3" 4300 20170510 20 阅读全文
posted @ 2019-11-10 15:19 KBAI 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 某谷题解 1 #include<algorithm> 2 #include<cstdio> 3 using namespace std; 4 typedef long long ll; 5 const ll N=1e5+10,INF=0x3f3f3f3f; 6 ll n,m; 7 ll sum[N] 阅读全文
posted @ 2019-11-08 19:02 KBAI 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 1 #include <cmath> 2 #include <cstdio> 3 #include <cstdlib> 4 #include <iostream> 5 #include <algorithm> 6 const int MAXN = 100; 7 const int MAXV = 20 阅读全文
posted @ 2019-11-07 20:56 KBAI 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 完全背包最简代码 1 for(int i=1;i<=n;++i) 2 for(int j=w[i];j<=w;++j) 3 dp[j]=max(dp[j],dp[j-w[i]]+v[i]); View Code 阅读全文
posted @ 2019-11-07 18:52 KBAI 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 首先先上大佬DP法的AC代码(原链接) 大佬思路 设状态 DP的套路就是题目问什么就设什么,然后这有是一道区间DP经典题 所以我们设f[i][j][h]表示从i到j分成h段的最大最小值 转移方程 由状态我们可以得出转移方程: f[i][j][h]=max/min(f[i][j][h],f[i][k] 阅读全文
posted @ 2019-10-22 21:48 KBAI 阅读(530) 评论(0) 推荐(0) 编辑
摘要: Bookmarks Bookmarks 超脱 书签栏 l NPC问题_百度百科C++对拍 - py_2017的博客 - CSDN博客 二分 你真的会写二分查找吗 - luoxn28 - 博客园 动态规划 最长不下降子序列详解(一) - hi_baymax的博客 - CSDN博客 语法 C++ typ 阅读全文
posted @ 2019-09-26 21:07 KBAI 阅读(201) 评论(0) 推荐(1) 编辑
摘要: 第一次 css html 他人博客 阅读全文
posted @ 2019-08-28 21:02 KBAI 阅读(290) 评论(0) 推荐(0) 编辑