?
# | 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 |
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))
?
?
?
?