摘要: 当农夫约翰闲的没事干的时候,他喜欢坐下来看书。多年过去,他已经收集了 N 本书 (1 <= N <= 100,000), 他想造一个新的书架来装所有书。 每本书 i 都有宽度 W(i) 和高度 H(i)。书需要按顺序添加到一组书架上;比如说,第一层架子应该包含书籍1 ... k,第二层架子应该以第k 阅读全文
posted @ 2017-04-25 21:44 LoveYayoi 阅读(656) 评论(2) 推荐(0) 编辑
摘要: F. Julia the snail time limit per test 2 seconds memory limit per test 512 megabytes input standard input output standard output F. Julia the snail ti 阅读全文
posted @ 2017-04-25 14:21 LoveYayoi 阅读(387) 评论(0) 推荐(1) 编辑