321. Bitwise AND of a Range
MediumBits
Print the bitwise AND of all integers from l to r inclusive.
Input format
A single line: l r
Output format
The AND.
Example 1
Input
5 7
Output
4
Example 2
Input
0 0
Output
0
Constraints
0 ≤ l ≤ r < 2⁶²
Read input from standard input and print the answer to standard output. Your code is judged against 5 test cases, most of them hidden.
Loading the MyLoginn IDE…