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

BUG!!!!!题目有漏洞!

Posted by ccut_38102011 at 2012-12-07 17:02:58 on Problem 1799
个人觉得这题出的很有问题。按照题目的要求输出r的值保留三位小数。但是按照编程语句的四舍五入的结果,就出问题。我们假设大圆里面有6个小圆,且每一个小圆的半径r=4.1235,并且每个小圆是紧挨着,同时也紧挨着大圆的边界。那么按照输出要求r=4.124,虽然只多了0.001,但是很明显大圆是容不下这六个小圆了。除非他们有一个往中间靠一点,但是这样又违背了题意。题目要求小圆紧挨着大圆边境,不然我们就不好求了。一开始以为要考虑这点,很当心四舍五入不能用,提交了才知道可以四舍五入。

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