Rosetta Problems

建設事業 2 (Construction Project 2)

https://atcoder.jp/contests/joi2024ho/tasks/joi2024ho_b