MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / put

Method put

code/other/two_sat.cpp:8–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6 V[i].adj.clear(),
7 V[i].val = V[i].num = -1, V[i].done = false; }
8 bool put(int x, int v) {
9 return (V[n+x].val &= v) != (V[n-x].val &= 1-v); }
10 void add_or(int x, int y) {
11 V[n-x].adj.push_back(n+y), V[n-y].adj.push_back(n+x); }
12 int dfs(int u) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected