摘要: 题目传送门 这道题其实二分一下答案就okay了的 不过LL什么的有时候忘了加 被卡了下 #include<cstdio> #include<cstring> #include<algorithm> #define LL long long using namespace std; const int 阅读全文
posted @ 2017-06-24 15:45 友人Aqwq 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 题目传送门 这道题很容易想到优先把两堆重量最小的合并比较优 然后乱搞一下就可以啦 #include<cstdio> #include<cstring> #include<algorithm> #include<queue> using namespace std; int read(){ int a 阅读全文
posted @ 2017-06-24 11:24 友人Aqwq 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 这道题 网上题解还是很多很好的 强烈推荐黄学长 码风真的好看 神犇传送门 学习学习 算是道单调队列优化dp的裸题吧 #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int M=205, 阅读全文
posted @ 2017-06-24 11:06 友人Aqwq 阅读(196) 评论(0) 推荐(0) 编辑