Rosetta Problems

足ゲームII

https://atcoder.jp/contests/code-festival-2015-final-open/tasks/codefestival_2015_final_d