Rosetta Problems

Breadth First Search

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