Rosetta Problems

Rainwater Simulation in Mountainous Terrain

https://atcoder.jp/contests/awc0106/tasks/awc0106_b