Meta HackerCup 2023 Round1 : Problem C1: Back in Black (Chapter 1)

Правка en1, от decrypt_me, 2023-10-18 05:43:32

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.

Теги hacker cup, greedy, mathematics, hackercup

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский decrypt_me 2023-10-18 07:12:27 15
en1 Английский decrypt_me 2023-10-18 05:43:32 680 Initial revision (published)