Codeforces Round 121 (Div. 1) C. Fools and Roads
- Time : O(qlogv+vlogv)
- Space : O(v+e)
c++
1 |
|