F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_4545608_15052\Main.java:1: 进行语法解析时已到达文件结尾
import java.util.*;import java.math.*;public class Main{    public static void main(String[] args)     {        int n;        Scanner in=new Scanner(System.in);        BigInteger one=BigInteger.ONE;        BigInteger four=new BigInteger("4");        BigInteger two=new BigInteger("2");        BigInteger st=null;        BigInteger t=null;        while(in.hasNextInt())        {            n=in.nextInt();            if(n==-1)break;            t=BigInteger.ONE;            for(int i=2;i<=n;i++)            {                st=new BigInteger(""+i);                /*h(n)=((4*n-2)/(n+1))*h(n-1); n>=2&&h(1)=1,h(0)=1*/                t=t.multiply(st.multiply(four).subtract(two)).divide(st.add(one));            }            System.out.println(t);        }    }


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-19 07:29:02, Gzip enabled