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 WF2016 at 2016-08-04 09:35:35 on Problem 1005
s=0.5 * pi * (x * x + y * y);
输出ans=(int)(s/(double)50+1);

《题意:50 * ans>0.5 * pi * (x * x + y * y)》
用例解释:
1.0 1.0 ——>因为50 * 1>0.5 * pi * (1.0 * 1.0 + 1.0 * 1.0)
25.0 0.0——>因为50 * 20>0.5 * pi * (25.0 * 25.0 + 0.0 * 0.0)

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