← All problemsSign in

Bulb

Problem description. There are some bulbs, which are numbered from n to m. All the bulbs are in on condition. The following operations are performed. (1) State of the bulbs whose number is divisible by 2 is changed. (2) State of the bulbs whose number is divisible by 3 is again changed. (3) State of the bulbs whose number is divisible by 4 is changed again. Now you have to find how many bulb

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start