General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
127956000 Contestant:
Gauranshu
1567B - 35 Python 3 Accepted 327 ms 14144 KB 2021-09-05 18:19:36 2021-09-05 20:02:45
→ Source
x=[0]*int(4e5)
for i in range(1,int(4e5)):x[i]=x[i-1]^i
for s in[*open(0)][1:]:
    a,b=map(int,s.split())
    print([a,a+1][x[a-1]!=b]+(x[a-1]^a==b))
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details