Rosetta Problems

Depth First Search

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