結果

問題 No.2672 Subset Xor Sum
ユーザー PNJPNJ
提出日時 2024-03-15 21:33:54
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 398 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 381,648 KB
最終ジャッジ日時 2024-03-15 21:34:09
合計ジャッジ時間 15,709 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
59,964 KB
testcase_01 AC 42 ms
59,832 KB
testcase_02 AC 45 ms
60,604 KB
testcase_03 AC 45 ms
60,604 KB
testcase_04 AC 45 ms
60,732 KB
testcase_05 AC 46 ms
60,732 KB
testcase_06 AC 45 ms
60,668 KB
testcase_07 AC 44 ms
60,540 KB
testcase_08 AC 44 ms
60,540 KB
testcase_09 AC 45 ms
60,604 KB
testcase_10 AC 44 ms
60,604 KB
testcase_11 AC 45 ms
60,540 KB
testcase_12 AC 43 ms
60,540 KB
testcase_13 AC 43 ms
60,540 KB
testcase_14 AC 44 ms
60,540 KB
testcase_15 AC 43 ms
60,540 KB
testcase_16 AC 44 ms
60,540 KB
testcase_17 AC 44 ms
60,540 KB
testcase_18 AC 44 ms
60,540 KB
testcase_19 AC 44 ms
60,540 KB
testcase_20 AC 45 ms
60,540 KB
testcase_21 AC 45 ms
60,604 KB
testcase_22 AC 44 ms
60,604 KB
testcase_23 AC 45 ms
60,604 KB
testcase_24 AC 45 ms
60,604 KB
testcase_25 AC 65 ms
71,528 KB
testcase_26 AC 62 ms
71,528 KB
testcase_27 AC 45 ms
60,796 KB
testcase_28 AC 45 ms
60,796 KB
testcase_29 AC 44 ms
60,668 KB
testcase_30 RE -
testcase_31 RE -
testcase_32 RE -
testcase_33 RE -
testcase_34 RE -
testcase_35 RE -
testcase_36 RE -
testcase_37 RE -
testcase_38 RE -
testcase_39 RE -
testcase_40 RE -
testcase_41 RE -
testcase_42 RE -
testcase_43 RE -
testcase_44 RE -
testcase_45 WA -
testcase_46 AC 658 ms
381,200 KB
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 AC 657 ms
381,520 KB
testcase_51 AC 631 ms
381,648 KB
testcase_52 AC 660 ms
381,264 KB
testcase_53 AC 637 ms
381,200 KB
testcase_54 AC 657 ms
381,264 KB
testcase_55 WA -
testcase_56 AC 386 ms
282,376 KB
testcase_57 AC 140 ms
138,472 KB
testcase_58 WA -
testcase_59 WA -
testcase_60 WA -
testcase_61 AC 324 ms
198,952 KB
testcase_62 AC 352 ms
229,736 KB
testcase_63 AC 524 ms
323,912 KB
testcase_64 AC 214 ms
139,432 KB
testcase_65 AC 42 ms
59,704 KB
testcase_66 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().strip()
import bisect

def Map():
  return list(map(int,input().split()))

N = int(input())
A = Map()
M = 8192
dp = [0 for j in range(8192*(N+1))]
for n in range(N):
  a = A[n]
  dp[(n+1)*M + a] = 1
  for j in range(8192):
    if dp[n*M+j]:
      dp[(n+1)*M+j] = 1
      dp[(n+1)*M + (a^j)] = 1
if dp[(N-1)*M] == 1:
  print('Yes')
else:
  print('No')
0