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

假如是这样的话,最简单的说法就是被e精度了,而且恰恰是被G++更高的精度e的

Posted by frkstyc at 2005-05-23 12:33:46 on Problem 1473
In Reply To:加2句就对了 Posted by:daofeng at 2005-05-23 12:07:41
> if(fabs(x)<1e-6) x=0;
> if(fabs(y)<1e-6) y=0;
> printf("The treasure is located at (%0.3lf,%0.3lf).\n",x,y);
> 
> 不然会出现-0.000的情况

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