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

加2句就对了

Posted by daofeng at 2005-05-23 12:07:41 on Problem 1473
In Reply To:奇怪...同一个程序用c++交就ac,用g++交就wa了……hawk大哥怎么回事啊? Posted by:wangchen1ren at 2005-05-22 22:14:29
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