← All problemsSign in

AFGJI FORTUNE TICKET

Susan loves fortune numbers very much. We all know that fortune numbers are positive integers whose decimal record contains only the fortune digits 4 and 7. For example, numbers 47, 744, 4 are fortune and 5, 177, 42367 are not. Susan loves tickets very much. As we know, each ticket has a number that is a positive integer. Its length equals n (n is always even). Susan calls a ticket fortune if the

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