Rosetta Problems

Breadth-First Search by Foxpower

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