The Xor War ?
Practice
1 (1 votes)
Easy
Problem
12% Success 1174 Attempts 20 Points 1s Time Limit 256MB Memory 1024 KB Max Code

 

11:00 pm : HINT: For C++/C use unsinged long long int. 

 

Alice and Bob are having a war of XOR's, they each brought their own numbers X & Y, Alice starts first, they can attack each other's number with a XOR attack. That is, they can XOR each other's number with any number of the form 2N. Whoever brings their opponent's number to strictly below Z first Wins. If they both play optimally who will win?


INPUT 
Three integers X, Y, Z. 


OUTPUT

Print "Alice"  if Alice wins "Bob" if Bob wins.


CONSTRAINTS

1<=Z<=X,Y<=264 -1

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
Editorial

No editorial available for this problem.