結果
| 問題 | No.2672 Subset Xor Sum |
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2024-03-15 21:55:00 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 246 bytes |
| 記録 | |
| コンパイル時間 | 355 ms |
| コンパイル使用メモリ | 85,160 KB |
| 実行使用メモリ | 140,128 KB |
| 最終ジャッジ日時 | 2026-04-16 06:59:44 |
| 合計ジャッジ時間 | 4,405 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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