i don't know how to solve this problem even after i read the editorial, i just understand the bfs part https://codeforces.com/problemset/problem/1037/D
i don't know how to solve this problem even after i read the editorial, i just understand the bfs part https://codeforces.com/problemset/problem/1037/D