hates专题

Codeforces Round #307 (Div. 2)C. GukiZ hates Boxes(二分+贪心)

题目链接:https://codeforces.com/contest/551/problem/C   题目大意:有n堆箱子,每堆箱子有a[i]个箱子,一共n个人,每个人每秒可以选择向右走一步或者拿一个箱子,问最少花多少时间拿掉所有箱子。   题目思路:二分时间,假设每个人都拥有x的时间,那么就一个个的去,每个人都尽全力去拿箱子,当sum+i>=x的时候就说明超出了一个人的能力范围,那就需

Codeforces Round #307 (Div. 2)-C. GukiZ hates Boxes

C. GukiZ hates Boxes 题目链接:http://codeforces.com/problemset/problem/551/C Description Professor GukiZ is concerned about making his way t