Magic in XOR
Practice
4 (1 votes)
Easy
Simple Math
Problem
85% Success 409 Attempts 20 Points 0.5s Time Limit 4048MB Memory 1024 KB Max Code

This question is quite simple.

You will be given 2 numbers let's say 'A' and 'C' and you have to find a number 'B' such that A (+) B = C.

A (+) B = C can be read as A xor B = C.

You can read more about XOR operation here: link

See Sample test-case for more understanding.

Note: In all programming languages, you can XOR two numbers say X and Y by ‘^’ (shift-6) key.

Please login to use the editor

You need to be logged in to access the code editor

Loading...

Please wait while we load the editor

Loading...
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:20
11 votes
Tags:
OperatorMathematicsApprovedEasyMathamatics
Points:20
1 votes
Points:20
19 votes
Tags:
OperatorsC++Basic ProgrammingBasic MathModulo arithmeticMath