摘要:
码死了...考试的时候基本上是写一会儿思考一会儿人生....考完了调了调...最后400行+....不应该这么长的....以后重写一下再补题解..... 也许这就是蒟蒻吧.jpg 安利cstdio博客翻译的题解. c++ include include include include using n 阅读全文
摘要:
题意 给出一个长度为n的正整数序列,要求把它划分成若干个连续的区间,使得每个区间的数字之和都不超过给定的lim.最后的代价等于每个区间的最大值之和.求最小代价.n include using namespace std; const int maxn=300006; typedef long lon 阅读全文
摘要:
向别人学习一波,记点流水帐.17.5.29开坑. 5.29 早晨看了道据说是树状数组优化DP的题(hdu5542),然后脑补了一个复杂度500^3的meet in the middle.然后死T...弃疗. 上午考试有一道sb线段树和一道简单数位DP.还有一道是毕姥爷在WC讲的"超立方体".对着数据 阅读全文
摘要:
一点也不优雅的LCT大力跑过去了23333.标算是并查集加特技... c++ include include using namespace std; const int maxn=500005; struct node{ node ch[2], prt; bool mk,isroot; int v 阅读全文