Divide by Zero 2018 and Codeforces Round 474 (Div. 1 + Div. 2, combined) F. Pathwalks
- Time : O(eloge+n)
- Space : O(n+eloge)
c++
1 |
|