首页 > TAG信息列表 > 30010

2-SAT模板

K #include <iostream> #include <cstdio> using namespace std; const int N = 30010; int n, m, head[N], ver[N << 1], nex[N << 1], tot, dfn[N], colCnt, col[N], sta[N], top, vis[N], low[N], cnt, ans[N]; inline void add (int x, int y) {