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:G++里难道用%f输出double才是正确的?In Reply To:G++里难道用%f输出double才是正确的? Posted by:ZhangChi at 2009-06-24 20:04:52 > 我的输出部分。。 > > double answer = 0; > for (int i = 1; i < T; ++i) > if (link[i] == -1) > answer += preE[i] + sum[i]; > > printf ("%.2f\n", answer); > > %f就过……%lf就WA,严重的不懂了。。。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator