Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
问题很多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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator