The Maths Lock
CodeChefOpen on judge ↗
Jimmy’s dad was a great scientist. He designed a special lock only for mathematicians. The lock had a screen where a random number B appears everytime someone tries to open the lock. The user needs to enter the total number of positive integers N that satisfy the condition, $reverse(N) = N + B$. The lock opens only if the answer is correct. Jimmy’s dad asked him to try if he can open the lock. Hel
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