Author: Óscar Garries
Official Editorial: https://dmoj.ca/problem/ccc16s3/editorial
C++
#include <bits/stdc++.h> using namespace std; const int MX = 1e5 + 5; vector<int> g[MX];int depth[MX];bool use[MX];int n, m, sol, node, mini, nodes;