def sg(x):
if f[x] != -1 : return f[x]
S = []
for i in range(x):
for j in range(i+1):
S.append(sg(i) ^ sg(j))
i = 0
while True:
if i not in S:
f[x] = i
return f[x]
i += 1
if __name__=='__main__':
N = 110
f = [-1]* N
n = int(input())
res = 0
s = list(map(int,input().split()))
for i in range(n):
res ^= sg(s[i])
print('Yes' if res else 'No')
大佬,你这好像只是代码打卡,并不是题解 0.0