| ||||||||||
| 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 | |||||||||
为什么在Eclipse通过,在这却编译出错,代码如下import java.math.*;
import java.util.*;
public class big
{
public static void main(String[] args)
{
Scanner in=new Scanner(System.in);
BigInteger sum=BigInteger.valueOf(0);
BigInteger a=in.nextBigInteger();
while(a.compareTo(BigInteger.valueOf(0))!=0)
{
sum=sum.add(a);
a=in.nextBigInteger();
}
System.out.println(sum);
}
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator