Rosetta Problems

Nearest Post Office

https://atcoder.jp/contests/awc0055/tasks/awc0055_b