結果
| 問題 |
No.2672 Subset Xor Sum
|
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2024-03-15 21:55:00 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 246 bytes |
| コンパイル時間 | 145 ms |
| コンパイル使用メモリ | 82,024 KB |
| 実行使用メモリ | 141,736 KB |
| 最終ジャッジ日時 | 2024-09-30 00:59:03 |
| 合計ジャッジ時間 | 5,840 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 53 WA * 13 |
ソースコード
n=int(input())
a=list(map(int,input().split()))
if n>16:
print("Yes")
else:
for i in range(1,(1<<n)-1):
b=0
c=0
for j in range(n):
if (i>>j)&1:
b^=a[j]
else:
c^=a[j]
if b==0 and c==0:
print("Yes")
exit()
print("No")
sasa8uyauya