2012年8月23日

poj1200

摘要: 这题用hash做。算法导论上面讲的很清楚 1 #include <cstdio> 2 #include <cstring> 3 using namespace std; 4 char s[16000005]; 5 int a[100000]; 6 int hash[16000005]; 7 int main() 8 { 9 int n,nc;10 11 memset(hash,0,sizeof(hash));12 memset(a,0,sizeof(a));13 scanf("%d %d ",&n,&nc);14 scanf(&quo 阅读全文

posted @ 2012-08-23 10:05 矮人狙击手! 阅读(217) 评论(0) 推荐(0) 编辑

导航