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:为什么四舍五入反而WA,直接保留两位反而AC了。。

Posted by 1311610617 at 2018-06-15 16:56:49 on Problem 1004
In Reply To:为什么四舍五入反而WA,直接保留两位反而AC了。。 Posted by:chaos_wjc at 2017-09-21 20:11:28
>    感到无奈
如果你用的C语言,如果你用的gcc编译器,如果你是用%.2f输出的,那么这个格式字符串就已经保证了四舍五入了,你在自己写四舍五入是多余的。

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