卡塔兰数介绍
2015-11-17 18:47
190 查看
卡塔兰数卡塔兰数维基介绍https://zh.wikipedia.org/wiki/%E5%8D%A1%E5%A1%94%E5%85%B0%E6%95%B0卡塔兰数经典例题
Train Problem II
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1106 Accepted Submission(s): 654Problem DescriptionAs we all know the Train Problem I, the boss of the Ignatius Train Station want to know if all the trains come in strict-increasing order, how many orders that all the trains can get out of the railway.InputThe input contains several test cases. Each test cases consists of a number N(1<=N<=100). The input is terminated by the end of file.OutputFor each test case, you should output how many ways that all the trains can get out of the railway.Sample Input1 2 3 10Sample Output
1 2 5 16796
HintHintThe result will be very large, so you may not process it by 32-bit integers.
程序转自 http://blog.csdn.net/abcjennifer/article/details/5307080[/code]
相关文章推荐
- 服务器排障 之 nginx 499 错误的解决
- 页面静态化的意义
- css(一)
- nginx 日志文件切割
- git常用命令
- 手势识别器
- 不怀疑不能见真理。——李四光
- matlab图像处理为什么要归一化和如…
- 图像增强(MATLAB)
- 图像增强剂matlab实现
- 常用的一些图像处理Matlab源代码
- matlab图像处理为什么要归一化和如…
- matlab常用函数与常用指令大全
- 图像增强常用代码
- MATLAB相应一些函数机及其作用
- Photoshop键盘快捷键&nbsp;&nbsp;&nbsp;操作更方便
- matlab图像预处理代码综合
- 边缘检测、区域划分相关的函数及详…
- matlab图像提取
- matlab简单结构