?
# | Author | Problem | Lang | Verdict | Time | Memory | Sent | Judged | |
---|---|---|---|---|---|---|---|---|---|
221654181 |
Practice: shivamskjofficial |
1567B - 36 | PyPy 3-64 | Accepted | 171 ms | 12412 KB | 2023-09-03 11:45:00 | 2023-09-03 11:45:01 |
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))
?
?
?
?