help me this question please

Правка en1, от om1429888, 2022-10-11 08:12:04

https://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?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский om1429888 2022-10-11 08:12:04 328 Initial revision (published)