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.
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
Editorial