# |
Author |
Problem |
Lang |
Verdict |
Time |
Memory |
Sent |
Judged |
|
258280914 |
Virtual:
Kvadratuku: Gegedosh, MakShon, kapopenko# |
1567B
- 36
|
Python 3
|
Accepted
|
202 ms
|
4280 KB
|
2024-04-26 21:54:56 |
2024-04-26 21:54:56 |
|
for s in[*open(0)][1:]:a,b=map(int,s.split());x=(0,a-1,1,a)[a%4];print(a+(b!=x)+(b^x==a))
Click to see test details