Rosetta Problems

rng_58's Last Problem

https://atcoder.jp/contests/agc051/tasks/agc051_f