← All problemsSign in

Tom and Jerry

Tom and Jerry are best friends.They live in an amazing place called "Amazingpur" . As Jerry's birthday is near ,Tom decides to buy a unique gift for him . So he went to a shop but was upset to find that there were exactly two gifts of same type . Seeing this, spike (the bulldog) added one gift to make Tom happy . Help Tom find that unique gift that spike added . Input: - First line contains a

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