?
# | Author | Problem | Lang | Verdict | Time | Memory | Sent | Judged | |
---|---|---|---|---|---|---|---|---|---|
130079483 |
Practice: kavyasrihari |
1567B - 36 | Python 3 | Accepted | 218 ms | 9232 KB | 2021-09-28 13:46:32 | 2021-09-28 13:46:33 |
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))
?
?
?
?