Rosetta Problems

Practical Computing

https://atcoder.jp/contests/abc254/tasks/abc254_b