Rosetta Problems

コピー & ペースト 3 (Copy and Paste 3)

https://atcoder.jp/contests/joisc2022/tasks/joisc2022_d