Rosetta Problems

Cooking Contest

https://atcoder.jp/contests/awc0100/tasks/awc0100_b