Rosetta Problems

Choosing Treasure Chests

https://atcoder.jp/contests/awc0011/tasks/awc0011_e