Rosetta Problems

碁石ならべ 2 (Stone Arranging 2)

https://atcoder.jp/contests/joi2023ho/tasks/joi2023ho_a