Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

简单公式!!!

Posted by 810974380 at 2009-08-29 14:59:29 on Problem 3619
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator