POJ
Viko_ReCode
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
POJ 3070 Fibonacci (矩阵快速幂基础题)
题目链接:http://poj.org/problem?id=3070 创建如下矩阵求解递推式Fn项的值: 代码如下: #include #include const int mod = 10000; const int matSize = 2; struct Mat { int val[matSize][matSize]; void init原创 2013-09-11 22:50:43 · 634 阅读 · 0 评论 -
POJ 2503 Babelfish
题目链接:http://poj.org/problem?id=2503 #include #include #define MAXSIZE 150000 //#define maxn 30 #define kind 20 const int MOD = 131101; //一个大质数 struct HASH { char pre[kind], now[kind];原创 2013-10-13 01:24:33 · 455 阅读 · 0 评论 -
POJ 1200 Crazy Search (RKhash)
题目链接:http://poj.org/problem?id=1200 #include #include const int N = 16666666; bool hash[16666666]; int letr[26]; char s[N]; int pow(int a, int b) { int r = 1, base = a; while(b) {原创 2013-10-13 17:39:10 · 744 阅读 · 0 评论
分享