Rosetta Problems
← atcoder に戻る
Road of the King
https://atcoder.jp/contests/cf16-final/tasks/codefestival_2016_final_f