Rosetta Problems

Rock Destruction

https://atcoder.jp/contests/awc0010/tasks/awc0010_d