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 |
假如是这样的话,最简单的说法就是被e精度了,而且恰恰是被G++更高的精度e的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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator