标签:
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 3382 Accepted Submission(s): 1960
import java.math.BigInteger; import java.util.Scanner; public class Main { public static void main(String[] args) { BigInteger [] h = new BigInteger[101]; h[1] = new BigInteger("1"); for(int i=2;i<=100;i++){ h[i] = h[i-1].multiply(BigInteger.valueOf(4*i-2)).divide(BigInteger.valueOf(i+1)); } Scanner sc =new Scanner (System.in); while(sc.hasNext()){ int n =sc.nextInt(); System.out.println(h[n]); } } }
标签:
原文地址:http://www.cnblogs.com/liyinggang/p/5367259.html