Codeforces Round 354 (Div. 2) D. Theseus and labyrinth
- Time : O(nm∗log(nm))
- Space : O(nm+button∗directions∗blocks)
c++
1 |
|