Differently Lucky Number
CodeChefOpen on judge ↗
Alice is studying in 5th grade and today her teacher asked her to do the following assignment. Given a number $N$ find out whether it is a differently lucky number or not. A differently lucky number is a number that contains only 3, 5 and 7. For example: 335 is a differently lucky number. 358 is not a differently lucky number.(it contains digit $8$) Help Alice complete her task.
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