摘要: "洛谷 P2687 [USACO4.3]逢低吸纳Buy Low, Buy Lower" / "ACWing 314 低买" 题解 2019 12 26 xiaoh 题意 给定一个有n个数的序列a(1a[j]的情况分为三类: 1、f[j]+1大于f[i],说明存在更长的序列,则f[i]=f[j]+1, 阅读全文
posted @ 2019-12-26 22:18 xiaoh105 阅读(126) 评论(0) 推荐(0) 编辑
摘要: "洛谷 P2915 [USACO08NOV]奶牛混合起来Mixed Up Cows 题解" 2019 10 30 xiaoh 题意 有n头牛(4 using namespace std; inline int read()//快读 { int ret=0; char ch=getchar(); wh 阅读全文
posted @ 2019-12-26 21:34 xiaoh105 阅读(112) 评论(0) 推荐(0) 编辑
摘要: "洛谷 P4168 [Violet]蒲公英题解" 2019 12 25 题意 给定一个含有n个数(1 using namespace std; inline int read()//快读 { int ret=0,w=1; char ch=getchar(); while(ch'9') { if(ch 阅读全文
posted @ 2019-12-26 21:31 xiaoh105 阅读(98) 评论(0) 推荐(0) 编辑
摘要: "洛谷 P1854 花店橱窗布置" / "ACWing 313 花店橱窗 题解" 2019 12 26 xiaoh 题意 给定$f$盆花,$v$个花盆($1\leq f \leq v\leq100$)。第$i$朵花插在第$j$个花盆中都有一个美丽值$A_{i,j}$($A_{i,j}$ 可能为负数) 阅读全文
posted @ 2019-12-26 21:29 xiaoh105 阅读(109) 评论(0) 推荐(0) 编辑