help me this question please

Revision en1, by om1429888, 2022-10-11 08:12:04

https://mirror.codeforces.com/problemset/problem/1738/C

Hi guys,i was upsolving this round and could not figure out how to solve this.I went for the editorials but still could not figure out why they are using mod 4 not some other number.can someone please guide me with the intution behind this problem?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English om1429888 2022-10-11 08:12:04 328 Initial revision (published)