摘要: /*今天一翻以前做的sg函数的题,这题原来的代码居然跑781MS, 我晕!又重新写了一遍,开始vis数组定义成全局变量了,WA。。。T_TMy Code(78+MS):*/#include <iostream>#include <cstdio>#include <cstring>using namespace std;const int N = 1005;struct node{ int num; int edg[N];}e[N];int sg[N];int mex(int t){ if(sg[t] != -1) return sg[t]; int i; . 阅读全文
posted @ 2011-10-11 17:32 AC_Von 阅读(205) 评论(0) 推荐(0) 编辑