Rosetta Problems

Preparing for a Hot Spring Trip

https://atcoder.jp/contests/awc0151/tasks/awc0151_c