2012年8月25日

2012 Multi-University Training Contest 4 D - Trouble

摘要: hash 1 # include <stdio.h> 2 # include <string.h> 3 4 # define N 205 5 # define M 100007 6 7 typedef long long int LL; 8 9 int n;10 LL a[6][N];11 int head[M], next[N*N+N];12 13 int hash(LL x)14 {15 return ((x%M)+M)%M;16 }17 18 void init_hash_table(void)19 {20 memse... 阅读全文

posted @ 2012-08-25 15:13 getgoing 阅读(247) 评论(0) 推荐(0) 编辑

导航