XOR problem

Revision en1, by kittyK, 2020-09-01 07:44:55

For 768C - Джон Сноу и его любимое число , what is the intuition to solve it ? At first for small constraint I made brute force solution and noticed that there is a pattern , there can be two different arrays — when k is even and when k is odd.

But this is not working . Here is my code .

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English kittyK 2020-09-01 07:44:55 316 Initial revision (published)