Rosetta Problems

Breadth-First Search by Foxpower

https://atcoder.jp/contests/JAG2014Spring/tasks/icpc2014spring_a