← All problemsSign in

The Gift

Alice is a huge fan of numbers. So Bob, her boyfriend, gave her a problem to solve. If she solved the problem, he would give her a gift (yea right!). Bob gave Alice a huge number N and asked her to find the product of its digits. Alice knows that Bob is just doing this so that she doesn’t irritate him. So she asks your help to get the answer fast and claim the gift! Since the answer could be huge,

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