hdoj 1134 Game of Connections【水】【java】
来源:互联网 发布:荔枝网络电视台直播 编辑:程序博客网 时间:2024/04/29 10:26
import java.util.Scanner;import java.math.BigInteger;import java.math.BigDecimal;public class Main {public static void main(String[] args){int n=0;BigInteger[] ans = new BigInteger[101];Scanner input = new Scanner(System.in);ans[0] = BigInteger.valueOf(1);ans[1] = BigInteger.valueOf(1);ans[2] = BigInteger.valueOf(2);for(int i=3; i<101; i++){ans[i] = BigInteger.valueOf(0);for(int j=0; j<i; j++ ){ans[i] = ans[i].add(ans[j].multiply(ans[i-j-1]));}}while(input.hasNextInt()){n = input.nextInt();if(n == -1)break;System.out.println(ans[n]);}}}
- hdoj 1134 Game of Connections【水】【java】
- HDOJ 1134: Game of Connections
- hdu/hdoj 1134 Game of Connections
- hdoj 1134 Game of Connections 【catalan数列】
- HDOJ HDU 1134 Game of Connections
- 1134 ---( Game of Connections )
- hdoj 1134 Game of Connections(卡特兰数&&大数)
- hdoj-1134-Game of Connections【卡特兰数】
- hdoj 1134 Game of Connections 【卡特兰数】
- HDU 1134 Game of Connections
- HDU 1134 Game of Connections
- HDU 1134 Game of Connections
- HDU 1134 Game of Connections
- hdoj.1134 Game of Connections【卡特兰数】 2015/04/14
- hdu 1134 game of connections(Catalan Number)
- [Catalan] HDU 1134 Game of Connections
- 高精度-HDU-1134-Game of Connections
- hdu 1134 Game of Connections (Catalan数)
- 结合一程序分析Handler,Looper,HandlerThread类
- C字符串处理函数
- 动态规划算法和贪婪算法的区别
- fedora 16 b4311 网卡驱动安装记
- 求一个数的反序数
- hdoj 1134 Game of Connections【水】【java】
- 求100到1000内的水仙花数字并打印
- 操作系统
- intel 2012 roadmap
- nmefwmi.exe 关闭的问题
- 乔帮主演讲:iPhone4,iPad,iPad2, STANFORD Speech -- youtube 键连
- linux history历史命令介绍
- Memory Ordering
- 揭秘 propertyToWrappedProperty()->insert(varProp, internProp)