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

看看这两个语句,一个AC,一个WA

Posted by sunmoonstar_love at 2005-07-24 01:47:32 on Problem 1925
In Reply To:所以不解才问一下,开始写的,我的数据都过,但是POJ WA, 看了discuss,才过 Posted by:sunmoonstar_love at 2005-07-24 01:42:05
p=x[i]-(int)(sqrt(double(y[i]*y[i]-(y[i]-y[0])*(y[i]-y[0])))+1e-12); 
这个WA

p=x[i]-(int)(sqrt((double)y[i]*y[i]-(double)(y[i]-y[0])*(y[i]-y[0]))+1e-12);

这个AC


实在看不出二者有什么区别

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