哈希算法之三
摘要:
//poj 1200 Crazy Search#include <iostream> //hash#include <string>using namespace std;bool table[20000000];int ans[100],count,curr; //注意有大小写字母char ch[1000000]; //本题中的输入字符串ch相当大,另外,table也要开得很大int main(){ int n,nc,len; memset(ans,-1,sizeof(ans)); scanf("%d%d%s",&n,&nc,ch) 阅读全文
posted @ 2011-08-22 15:03 sysu_mjc 阅读(107) 评论(0) 推荐(0)
浙公网安备 33010602011771号