2022 Combo Div 1 P5
Source:
February 28, 2022
combinatorics
Problem Statement
At CMIMC headquarters, there is a row of lightbulbs, each of which is connected to a light switch. Daniel the electrician knows that exactly one of the switches doesn't work, and needs to find out which one. Every second, he can do exactly one of 3 things: [*] Flip a switch, changing the lightbulb from off/on or on/off (unless the switch is broken).
[*] Check if a given lightbulb is on or off.
[*] Measure the total electricity usage of all the lightbulbs, which tells him exactly how many are currently on.
Initially, all the lightbulbs are off. Daniel was given the very difficult task of finding the broken switch in at most seconds, but fortunately he showed up to work 10 seconds early today. What is the largest possible value such that he can complete his task on time?Proposed by Adam Bertelli