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 |
Java 不能AC的经验第一点: 1、读数的时候要使用scanner.nextBigDecimal(),而不能使用nextDouble(),然后用new BigDecimal()转化,这会产生误差!!!(我在这被坑了,提醒后人!) 2、decimal = decimal.pow(n).stripTrailingZeros(); String s = decimal.toPlainString(); Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator