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

Re:printf(%.3lf\n,ans);wrong answer,printf("%.3f\n,ans); accepted;求解释

Posted by yimmon at 2012-05-26 19:39:32 on Problem 2151 and last updated at 2012-05-26 19:41:30
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:
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