?
# | Author | Problem | Lang | Verdict | Time | Memory | Sent | Judged | |
---|---|---|---|---|---|---|---|---|---|
256878098 |
Practice: Traverser_Steal69 |
1567B - 36 | Python 3 | Accepted | 171 ms | 4032 KB | 2024-04-16 09:57:43 | 2024-04-16 09:57:43 |
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))
?
?
?
?