2009年10月9日

Train Problem II

摘要: 组合数学问题,结果是catalan数,公式见http://www.iwebtrados.com.cn/post/213.html唯一要注意的问题是n比较大,需要用大数来处理。为了避免做大数除法,先做了一个小处理。#include <stdio.h>#include <stdlib.h>int gcd1(int a,int b){ int t; if(a<b) {t=a... 阅读全文

posted @ 2009-10-09 15:27 网络小筑 阅读(304) 评论(0) 推荐(0) 编辑

导航