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

Function iter

code/other/two_sat.test.cpp:17–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16 TwoSat ts(n);
17 iter(it,clauses) {
18 ts.add_or(it->first, it->second);
19 }
20 if (ts.sat()) {
21 vector<bool> is_true(n+1, false);
22 // for (int i = 0; i < size(all_truthy); i++) if (all_truthy[i] > 0) is_true[all_truthy[i]] = true;

Callers

nothing calls this directly

Calls 1

add_orMethod · 0.80

Tested by

no test coverage detected