Lottery Number
CodeChefOpen on judge ↗
Once there was a lottery system started. In every lottery ticket, there was a number based on which winner was selected. One of the hacker hacked the algorithm that was used to select the winner. The algorithm was simply easy. According to this algorithm, all the sub numbers that are derived from the lottery number must remain the sub number of the lottery number even if they are reversed. If thes
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