spirited_away_'s blog

By spirited_away_, history, 5 years ago, In English

Here is the problem. Can anyone give me more detail proof of why the answer to the problem is always summation of min(S[v], 2*k - S[v]).

The editorial is not clear.

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?