Depth first search on a disconnected graph (#491) - Azerbaijan Computing Olympiad