摘要: https://codeforces.com/contest/702/problem/F 考虑依次加入每个物品,假设它的代价是$x$,那么会把剩余钱$\in [x,+\infty]\(的\)-=x$,答案++。 考虑分成三个区间来看: \([0,x-1],[x,2x-1],[2x,+infty)\) 阅读全文
posted @ 2020-07-27 21:24 Cold_Chair 阅读(247) 评论(0) 推荐(0) 编辑