← All problemsSign in

Perfect Pair

Abhishek wants a bike so that he can have a happening college life. So he asked his father. But as his father knows he is bad in studies , he asked him to solve a problem after which he will get the bike. Now as you are his best friend, help him get the bike. Abhishek is given a array of integers of length $N$ . Each element of the array has a perfect number . A $Perfect$ $Number$ of a element is

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