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

Method query

code/graph/tarjan_olca.cpp:13–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11 queries = new vii[n];
12 memset(colored, 0, n); }
13 void query(int x, int y) {
14 queries[x].push_back(ii(y, size(answers)));
15 queries[y].push_back(ii(x, size(answers)));
16 answers.push_back(-1); }
17 void process(int u) {
18 ancestor[u] = u;
19 rep(i,0,size(adj[u])) {

Callers

nothing calls this directly

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected