2012年7月24日
摘要:
1 #include<cstdio> 2 #include<cstring> 3 #define MAXM 10 4 #define MAXL 324 5 #define MAXN 240000 6 #define INF 0x7FFFFFFF 7 char sd[MAXM][MAXM]; 8 int L[MAXN], R[MAXN], U[MAXN], D[MAXN], H[MAXN]; 9 int size, C[MAXN], S[MAXN], X[MAXN], Q[MAXN], vis[MAXL * 3]; 10 void Read() 11 { 12 int.. 阅读全文
摘要:
1 #include<cstdio> 2 #include<cstring> 3 #define INF 0x7FFFFFFF 4 #define MAXS 16 5 #define MAXH 4100 6 #define MAXL 1025 7 #define MAXN 4200000 8 char sd[MAXS][MAXS]; 9 int L[MAXN], R[MAXN], U[MAXN], D[MAXN], C[MAXN], X[MAXN]; 10 int size, S[MAXL], H[MAXH], Q[MAXH]; 11 bool vis[MAXH]; 1 阅读全文
摘要:
1 #include<cstdio> 2 #include<cstring> 3 #define MAXM 10 4 #define MAXL 324 5 #define MAXN 240000 6 #define INF 0x7FFFFFFF 7 char sd[MAXM][MAXM]; 8 int L[MAXN], R[MAXN], U[MAXN], D[MAXN], H[MAXN]; 9 int size, C[MAXN], S[MAXN], X[MAXN], Q[MAXN], vis[MAXL * 3]; 10 bool Read() 11 { 12 int.. 阅读全文