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:无语 double ~~

Posted by qiluofei at 2008-07-16 10:08:10 on Problem 3639
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:
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