結果

問題 No.2672 Subset Xor Sum
ユーザー 👑 KA37RIKA37RI
提出日時 2024-03-16 12:20:31
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 322 bytes
コンパイル時間 352 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 136,320 KB
最終ジャッジ日時 2024-03-16 12:20:38
合計ジャッジ時間 7,105 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
66,308 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 44 ms
61,576 KB
testcase_05 AC 43 ms
61,576 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 44 ms
61,576 KB
testcase_10 AC 47 ms
61,576 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 44 ms
61,576 KB
testcase_22 AC 44 ms
61,576 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 68 ms
74,888 KB
testcase_26 AC 68 ms
74,888 KB
testcase_27 AC 43 ms
61,576 KB
testcase_28 AC 45 ms
61,576 KB
testcase_29 WA -
testcase_30 TLE -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
testcase_43 -- -
testcase_44 -- -
testcase_45 -- -
testcase_46 -- -
testcase_47 -- -
testcase_48 -- -
testcase_49 -- -
testcase_50 -- -
testcase_51 -- -
testcase_52 -- -
testcase_53 -- -
testcase_54 -- -
testcase_55 -- -
testcase_56 -- -
testcase_57 -- -
testcase_58 -- -
testcase_59 -- -
testcase_60 -- -
testcase_61 -- -
testcase_62 -- -
testcase_63 -- -
testcase_64 -- -
testcase_65 -- -
testcase_66 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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")
0