摘要:
http://poj.org/problem?id=3274***** 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 const int N=100001; 7 const int MOD=99991; 8 int Maxdis,k; 9 int c[N][32],sum[N][32];10 int vis[N][32];11 12 struct node13 {14 int row_i;15 struct node *next;16 }*hash[N];17 bool cmp(... 阅读全文
posted @ 2014-02-11 16:27
N_ll
阅读(165)
评论(0)
推荐(0)
摘要:
http://poj.org/problem?id=3007第一次用STL做的,TLE了,自己构造字符串哈希函数才可以。。TLE代码: 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 int main() 8 { 9 int n;10 scanf("%d",&n);11 while(n--)12 {13 int cnt = 0,j;14 char ss[120];15 string str,s,... 阅读全文
posted @ 2014-02-11 16:17
N_ll
阅读(169)
评论(0)
推荐(0)

浙公网安备 33010602011771号