← All problemsSign in

Power Management

A Resort in Mystic Falls was struck by lightning but as the resort didn’t have any safety measures in place for lightning the power supply of the resort was affected. The Resort has $M$ floors and each floor has $N$ rooms. Each floor has a main switch which supplies power to all the rooms when turned on. Because of lightning some rooms were affected. The affected rooms had power when the mai

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