Rosetta Problems

高橋王国と青木王国

https://atcoder.jp/contests/code-festival-2015-exhibition/tasks/codefestival_2015_ex_a