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

wrong answer

Posted by 201392456 at 2014-03-12 15:04:29 on Problem 3299
题目给出最后一个测试数据结果是:42.3,但是我得出的结果是:42.4,四舍五入咯,不是四社六入五成双的原则。
新手上路,大神帮我看看。
cout<<setiosflags(ios::fixed)<<setprecision(1)<<"T "<<t<<" D "<<d<<" H "<<h;

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