摘要: 题目地址http://acm.hdu.edu.cn/showproblem.php?pid=2639Bone Collector IITime Limit: 5000/2000 MS (Java/Others) Memory Limit: 32768/32768... 阅读全文
posted @ 2017-04-18 18:47 Sizaif 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 卡特兰数递推公式: C(n)=C(2n,n)/(n+1) 即用数组表示为c[i]=c[i-1]*(4*i-2)/(i+1);一般形式 直接 表达c[1]=1; for(i=2;i#include #include #include /* 先 打表, 卡特兰数, ... 阅读全文
posted @ 2017-04-18 14:24 Sizaif 阅读(206) 评论(0) 推荐(0) 编辑