Codeforces Round 805 (Div. 3) G2. Passable Paths (hard version)
- Time : O(vlogv+e+qlogv)
- Space : O(vlogv+e)
c++
1 |
|