Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

为什么在Eclipse通过,在这却编译出错,代码如下

Posted by silco at 2010-04-08 16:56:00
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator