Rosetta Problems

蟻の移動

https://atcoder.jp/contests/past18-open/tasks/past18_o