← All problemsSign in

Chef and The Number

Chef on learning about various types of numbers, wanted to discover his own type of number where if a positive whole number 'n' has 'd' digits then if the square of that number is divided into 2 pieces of either consisting of 'd' or 'd-1' digits and when the two pieces are added together, we get back the original number 'n'. Chef has theorized the concept and has determined some numbers that foll

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