I have a question for the editorial of the problem B. Suppose $n = 2, p_2 = 1$ and $G = \{1 \rightarrow 2, 2 \rightarrow 2\}$. Then $f(G, \emptyset) = 1, f(G, \{1\}) = 0, f(G, \{2\}) = 1, f(G, \{1, 2\}) = 1$ and the sum will be $3$ instead of $2$, what am I missing ? For $S = \{1, 2\}$ "consists solely of several vertex-disjoint cycles." does not work.
I have a question for the editorial of the problem B. Suppose $n = 2, p_2 = 1$ and $G = \{1 \rightarrow 2, 2 \rightarrow 2\}$. Then $f(G, \emptyset) = 1, f(G, \{1\}) = 0, f(G, \{2\}) = 1, f(G, \{1, 2\}) = 1$ and the sum will be $3$ instead of $2$, what am I missing ? For $S = \{1, 2\}$ "consists solely of several vertex-disjoint cycles." does not work.