Rosetta Problems

日本沈没 2 (Japan Sinks 2)

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