?
# | Author | Problem | Lang | Verdict | Time | Memory | Sent | Judged | |
---|---|---|---|---|---|---|---|---|---|
155175007 |
Practice: quangltfsc0378 |
1567B - 36 | PyPy 3 | Accepted | 280 ms | 9560 KB | 2022-04-28 08:01:06 | 2022-04-28 08:01:07 |
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))
?
?
?
?