Rosetta Problems

Stairway to Skill Up

https://atcoder.jp/contests/awc0042/tasks/awc0042_b