题意:卡特兰数+n!
java!
View Code
1 import java.math.BigInteger; 2 import java.util.*; 3 4 public class HDU1131{ 5 public static void main( String args[] ){ 6 int n; 7 Scanner cin=new Scanner(System.in); 8 BigInteger h[]=new BigInteger[ 105 ]; 9 h[ 0 ]=h[ 1 ]=BigInteger.ONE;10 for( int i=2;i<=100;i++ ){11 h[ i ]=BigInteger.ZERO;12 for( int j=0;j