← All problemsSign in

Ayush and The Numbers

A special type of numbers is formed by concatenation of numbers 2, 27 and 277. We can use each of these numbers any number of times. Therefore 27277, 272727 and 2722 are magic numbers but 2777 , 527 and 727 are not. Ayush wrote down the program but it had some bug in it. Help Ayush to find the BUG and find the solution. ###Input - You're given a number. Determine if it is a special number

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