摘要: #include #include #include #include using namespace std;typedef __int64 lld;const int MOD = 998244353;const int N = 20;struct Mat { lld a[N][N]; ... 阅读全文
posted @ 2015-07-27 20:09 ACMood 阅读(160) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std;typedef long long ll;const double pi = acos(-1.0);const int maxn = 50000 + 5;const double eps ... 阅读全文
posted @ 2015-07-20 14:18 ACMood 阅读(114) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#include#includeusing namespace std;const int M = 60005;struct Edge{ int v, next, w;}edge[M mp;int E, head[M], hh[... 阅读全文
posted @ 2015-07-05 11:02 ACMood 阅读(118) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#pragma comment(linker, "/STACK:1024000000, 1024000000")#includeusing namespace std;const int M = 400015;struct Edge{ int v... 阅读全文
posted @ 2015-05-29 10:20 ACMood 阅读(335) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;const int M = 200005;struct Edge{ int v, next;} edge[M q; q.push(1); memset(vis, 0, size... 阅读全文
posted @ 2015-05-29 08:32 ACMood 阅读(156) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;#define LL long longconst LL inf = 1234567899ll * 1234567890;int mod;int n;struct point{ int x,... 阅读全文
posted @ 2015-05-01 23:08 ACMood 阅读(118) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;const int M = 100005;const int N = 16;struct DLX{ int D[M], U[M], R[M], L[M], head[5000], S[500... 阅读全文
posted @ 2015-04-23 22:24 ACMood 阅读(198) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;const int M = 50006;int w[M], a[M], root[M];struct Tree{ int ls, rs, w;} tr[M > 1; if(d = r) return... 阅读全文
posted @ 2015-04-22 23:23 ACMood 阅读(162) 评论(0) 推荐(0) 编辑