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 shengrang at 2014-12-26 23:24:04 on Problem 1064
In Reply To:哥用double过了。。。 Posted by:guoyiwei111 at 2011-06-03 20:11:48
我也是这么写的,只不过没判断那个if((int)(right*1000)%10>=5)


这是意思,这里不需要四舍五入??

而是直接取后两位小数的??

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