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 |
附上简短的AC代码一份import java.util.*; import java.math.*; public class Main { public static void main(String args[]){ Scanner in=new Scanner(System.in); BigInteger ans=BigInteger.ZERO; while(in.hasNextBigInteger()) ans=ans.add(in.nextBigInteger()); System.out.print(ans.toString(10)); in.close(); } } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator