Rosetta Problems

Yakiniku Restaurants

https://atcoder.jp/contests/arc067/tasks/arc067_d