[Help Needed] Meta HackerCup 2023 Round1 : Problem C1: Back in Black (Chapter 1)

Revision en2, by decrypt_me, 2023-10-18 07:12:27

Problem Link : Problem Link : Black in Black

In solution , It is written take unique values in queries and mod with 2 because pressing twice is means doing nothing. I understood but let's say you first pressed 6th button then every 6th button state changes and later on you pressed 3rd button so, it will change every 3rd button states but I want to say that 3rd button pushing also changing the states of 6th button so, pressing count of 6th button is taken twice. Please suggest how count of pressing unique values working.

Tags hacker cup, greedy, mathematics, hackercup

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English decrypt_me 2023-10-18 07:12:27 15
en1 English decrypt_me 2023-10-18 05:43:32 680 Initial revision (published)