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:这样写感觉完全没问题啊,但是就是不让过。。。。。

Posted by zhongxiangwei at 2014-12-06 13:09:01 on Problem 1001
In Reply To:Re:这样写感觉完全没问题啊,但是就是不让过。。。。。 Posted by:zhongxiangwei at 2014-12-06 13:06:37
double a=cin.nextDouble();
问题可能出在这句,浮点数存储是不精确的,在计算时会出现精度问题;
你改成 String a=cin.next();试试

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