General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
175250142 Practice:
SARCASTIC_Venom
1567B - 36 Python 3 Accepted 296 ms 7384 KB 2022-10-09 16:45:51 2022-10-09 16:45:51
→ 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