LED Numbers
CodeChefOpen on judge ↗
Mugdha challenges her friend Shital with a problem involving seven-segment displays. You are given N sticks. Using all the sticks, you must form the largest possible number using digits that can be displayed on a seven-segment display. Each digit requires a fixed number of sticks: 0 → 6, 1 → 2, 2 → 5, 3 → 5, 4 → 4, 5 → 5, 6 → 6, 7 → 3, 8 → 7, 9 → 6 ---a--- | | f b | | ---g--- | | e c | | ---d--
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.
Sign in to chat with the tutor and save your progress.
Sign in to start