Comments
On Lewin → Codeforces Round #309, 11 years ago
0

How did you check that answer exists? Because I think that my check is harder than expected.

On Lewin → Codeforces Round #309, 11 years ago
0

Div. 1 C

On Lewin → Codeforces Round #309, 11 years ago
+1

Answer for C is 2^(number_of_components — 1) if answer exists and 0 otherwise.