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 |
简单公式!!!s[i] t[i] r[i] 工作量n; s[i] 每分钟可完成的工作量 t[i] 一次性连续工作最多坚持的时间 r[i] 一次连续工作后需要休息的时间 res=向上取整(n/s[i]); ans=res+( 向上取整(res/t[i])- 1 )*r[i]; 即总时间为最多需要的工作时间加休息时间!!! Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator