Rosetta Problems

Nearest Shelter

https://atcoder.jp/contests/awc0153/tasks/awc0153_b