SUPER LUCKY PALLINDROME
CodeChefOpen on judge ↗
Lucky numbers are positive integers composed only of the digits ‘4’ and ‘7’. For example, 47477 and 777 are lucky numbers while 457 and 1232 are not. Super lucky numbers have the following additional properties: • They are a lucky number themselves • Number of digits in them is a lucky number • The number of ‘4’s or the number of ‘7’s in them is a lucky number (or both counts are lucky numbers
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