Rosetta Problems

To be Connected or not to be that is the Question

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