Rosetta Problems
← atcoder に戻る
Root M Leaper
https://atcoder.jp/contests/abc272/tasks/abc272_d