Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
二分定义所有天数的花费和为sum. 则二分的左边界为0,右边界为sum. 每次取中点mid作为尝试,如果能mid能满足题意要求,则r=mid,否则l=mid+1 注意如果天数中有任何一天的数值大于mid则当前mid不可用. Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator