200000
2 526767110
2 724642759
2 567837900
2 104106873
2 357915481
2 33997211
2 444788944
2
<1586974 bytes omitted>
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#260 | #1001. A. 神秘谜题 | Time Limit Exceeded | 0 | 2064 ms | 43836 K | Python 3 / 362 B | wahahah | 2019-06-23 16:05:26 |
t=input()
t=int(t)
i=0
l=[]
k=[]
y=0
while i<t:
str=input()
s=str.split()
if int(s[0])==2:
y=y^int(s[1])
l.append(int(s[1]))
k.append(y)
elif int(s[0])==1:
y=0
for x in range(0,len(l)):
l[x]=l[x]+1
y=y^l[x]
k.append(y)
i=i+1
for i in k:
print(i)
200000
2 526767110
2 724642759
2 567837900
2 104106873
2 357915481
2 33997211
2 444788944
2
<1586974 bytes omitted>