Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

bully....maguire's blog

By bully....maguire, history, 7 years ago, In English

In goodbye 2019 problem G , it is mentioned that suppose an array with n elements is given such that each element a_i is from (i-n) to (i-1) then there exist subset of the array whose sum is zero . How to prove it ?

  • Vote: I like it
  • -41
  • Vote: I do not like it

»
7 years ago, hide # |
 
Vote: I like it +30 Vote: I do not like it

Well, read the editorial. The existence of a solution is proof of your lemma.