Rosetta Problems

Buildings Visible from the Sea

https://atcoder.jp/contests/awc0008/tasks/awc0008_b