結果
| 問題 |
No.2672 Subset Xor Sum
|
| コンテスト | |
| ユーザー |
nikoro256
|
| 提出日時 | 2024-03-19 14:32:52 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 265 bytes |
| コンパイル時間 | 190 ms |
| コンパイル使用メモリ | 82,384 KB |
| 実行使用メモリ | 142,368 KB |
| 最終ジャッジ日時 | 2024-09-30 05:28:50 |
| 合計ジャッジ時間 | 5,527 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 63 WA * 3 |
ソースコード
N=int(input())
A=list(map(int,input().split()))
ans=0
for i in range(N):
ans^=A[i]
if ans==0:
ma=max(A)
left=0
while 2**(left+1)<=ma:
left+=1
if len(set(A))>left+1:
print('Yes')
else:
print('No')
else:
print('No')
nikoro256