← All problemsSign in

Lighting the shop

CodeChefRating 2410Open on judge ↗

The exciting World Cup 2010's summer is coming! And Johnny's family shop is busy preparing a colorful lighting board for the summer. The board has a rectangular shape of size M x N. There are certain positions on the board which Johnny wants to put in light bulbs. Johnny wants to decorate the board by colorful light bulbs. To make the board look attractive, he wants the bulbs in the same column

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