2014年12月26日

【HDOJ】1277 全文检索

摘要: AC自动机,静态数组,动态分配TLE。 1 /* 1277 */ 2 #include <iostream> 3 #include <cstdio> 4 #include <cstring> 5 #include <cstdlib> 6 #include <queue> 7 using namesp 阅读全文

posted @ 2014-12-26 22:29 Bombe 阅读(164) 评论(0) 推荐(0) 编辑

【HDOJ】1134 Game of Connections

摘要: Catlan数。 1 /* 1134 */ 2 import java.util.Scanner; 3 import java.math.BigInteger; 4 5 /* 6 Catalan: 7 (1) h(n) = h(n-1) * (4*n-2) / (n+1) 8 ... 阅读全文

posted @ 2014-12-26 11:16 Bombe 阅读(230) 评论(0) 推荐(0) 编辑

导航