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 Sailing7 at 2009-02-08 15:45:04 on Problem 2646
看了题目以为最小值只是满足条件的最小的那个值
WA了N次才发现原来这是其一,另外还有个要求。
比如数据:

3
10.09
20.08
30.09

求出的平均值是20.09,
(20.09-10.09)+(20.09-20.08)=10.01
(30.09-20.09)=10.00
最终的答案为两个值的最小值10.00

郁闷啊,起初还以为是精度问题,把double改成long double还是不行。。。

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