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 |
Re:printf(%.3lf\n,ans);wrong answer,printf("%.3f\n,ans); accepted;求解释In Reply To:printf(%.3lf\n,ans);wrong answer,printf("%.3f\n,ans); accepted;求解释 Posted by:zxuan at 2012-02-09 15:22:30 确实神奇,我的也是,double的数printf(%.3lf\n,ans)会WA,printf(%.3f\n,ans)就过了 刚才又试了下,g++会出现上面的情况,用c++的话%.3lf也能AC Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator