Rosetta Problems

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

https://atcoder.jp/contests/joigsc2022/tasks/joigsc2022_d