結果
問題 |
No.2672 Subset Xor Sum
|
ユーザー |
👑 |
提出日時 | 2024-03-16 12:20:31 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 322 bytes |
コンパイル時間 | 176 ms |
コンパイル使用メモリ | 82,228 KB |
実行使用メモリ | 140,216 KB |
最終ジャッジ日時 | 2024-09-30 03:55:27 |
合計ジャッジ時間 | 5,859 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 10 WA * 19 TLE * 1 -- * 36 |
ソースコード
n = int(input()) a = [int(x) for x in input().split()] allxor = 0 for ai in a: allxor ^= ai if allxor != 0: print("No") exit() ok = [False] * 16384 ok[8192] = True for ai in a: nxt = [False] * 16384 for x in range(16384): nxt[x^ai] = True nxt[x&8191] = True ok = nxt print("Yes" if ok[0] else "No")