# |
Author |
Problem |
Lang |
Verdict |
Time |
Memory |
Sent |
Judged |
|
127995921 |
Practice:
eugalt |
1567B
- 35
|
Python 3
|
Accepted
|
202 ms
|
9244 KB
|
2021-09-05 23:38:16 |
2021-09-05 23:38:16 |
|
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