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注意用java写的,然后就是,在算是否余n为0的时候,有两种方法,一是采用BigInteger,因为long不够,9999时,位数为36,肯定会溢出;另一种就是采用discuss里面一个同学说的,每次余n然后再乘以10再加一。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator