Lover Numbers
CodeChefOpen on judge ↗
Saifullah Talukder is $22$ years old and yet he had no luck in his love life so far. He has lost all hope about this. Thinking that he will never have any love in his life he started to think about love between numbers. According to him two numbers are in love with each other if their bitwise-xor and sum are equal. For example: bitwise-xor of $160$ and $75$ is $235$ and their sum is also $235$. He
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.
Sign in to chat with the tutor and save your progress.
Sign in to start