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 jler at 2008-04-09 23:30:02 on Problem 1005
In Reply To:谁帮我看看哪有问题啊 Posted by:apple_pie at 2008-04-08 23:05:47
1,pi没必要那么精确,只要等于3.14就可以了。
2,去掉while循环。
3,去掉ifp语句,只保留else中的。
4,year=(x*x+y*y)*pi/100+1;有误,如果点刚好在边缘上,就错了。还是用ceil()函数吧,year=ceil((x*x+y*y)*pi/100);
5,输出格式有误。in year %d.\n",

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