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:这样写感觉完全没问题啊,但是就是不让过。。。。。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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator