2013年6月7日

戴牛一万行的几何模板

摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define mp make_pair #define pb push_back using namespace 阅读全文

posted @ 2013-06-07 18:21 电子幼体 阅读(126) 评论(0) 推荐(0) 编辑

哈希模板

摘要: #include #include using namespace std; const int maxn=11111; const int maxh=10000019; int head[maxh]; int next[maxh]; long long st[maxn]; void hash_init() { memset(head,0,sizeof(head)); } int hash(long long p,int prime=10000019) { int h; //hash操作 h=p%prime; return h; } boo... 阅读全文

posted @ 2013-06-07 10:20 电子幼体 阅读(141) 评论(0) 推荐(0) 编辑

导航