Rosetta Problems

The Shortest Path on the Spider's Web

https://onlinejudge.u-aizu.ac.jp/problems/0462