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 gzw_02 at 2008-07-26 09:50:15 on Problem 1064 and last updated at 2008-07-26 09:58:44
枚举法

精度,将flout转换成int,全部数×100
枚举范围,max(ck) >= t >= 1
从大到小枚举,当出现第一个 c1/t+c2/t+...cn/t>=request的时候输出t(还原为浮点数)就是答案

可以用二分法加速。

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