Rosetta Problems

Gorgeous Vases

https://atcoder.jp/contests/code-festival-2015-okinawa-open/tasks/code_festival_2015_okinawa_g