随笔分类 - 大数
摘要:一、卡特兰数其实和斐波那契一样,就是一个数列,可以通过以下几种方式求出 给出部分卡特兰数: 1, 1, 2, 5, 14, 42, 132, 429, 1430, 4862, 16796, 58786, 208012, 742900, 2674440, 9694845, 35357670, 1296
阅读全文
摘要:大数加法: 1 #include <stdio.h> 2 3 #include <string.h> 4 5 #define M 100 //定义了数量M是100作为数组初始化的数量 6 7 8 9 int main() 10 11 { 12 13 int i, j, len_s1, len_s2;
阅读全文