AtCoder Beginner Contest 75 - C - Bridge
#AtCoder
#グラフ
#DFS
https://atcoder.jp/contests/abc075/tasks/abc075_c
グラフ入門みたいな問題