Codeforces Round 425 (Div. 2) D. Misha, Grisha and Underground
- Time : O(v+e+qlogv+vlogv)
- Space : O(v+e)
c++
1 |
|