Rosetta Problems

ジョイ四人組 (JOI04)

https://atcoder.jp/contests/joi2023yo2/tasks/joi2023_yo2_b