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:无语 double ~~In Reply To:无语 double ~~ Posted by:Seraf at 2008-07-15 14:51:57 > 一开始用double写的,利用 double*100.0强转成int然后除以100.0转成double,wa了无限次,最后还是用int过得,无语啊~~ 握手哇,我也是…… 发现除以100.0后得到的值并不是符合要求的 比如 92380 / 100.0 后得到的结果是 923.799999999 不知道是不是这个原因导致WA的 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator