← All problemsSign in

7 Rings

CodeChefRating 568Open on judge ↗

In Chefland, a *valid* phone number consists of $5$ digits with **no leading zeros**. For example, $98765, 10000,$ and $71023$ are valid phone numbers while $04123, 9231,$ and $872310$ are not. Chef went to a store and purchased $N$ items, where the cost of each item is $X$. Find whether the total bill is equivalent to a *valid* phone number. ### Input - The first line of input will contain

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