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:为什么四舍五入反而WA,直接保留两位反而AC了。。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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator