Rosetta Problems

Greatest Journey

https://atcoder.jp/contests/nikkei2019-final/tasks/nikkei2019_final_g