← All problemsSign in

The input should be a pair of number when the factors of one number are added the sum should give another number and vice versa. Check whether the input number satisfies the condition or not if satisfies print true else false Example Input 220 284 Output true Expalnation When the factors of 220 are added ie 1+2+4+... we will get 284 and when we add the factors of 284 ie 1+2+4+... we will

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