結果

問題 No.2672 Subset Xor Sum
ユーザー i_takui_taku
提出日時 2024-03-15 21:58:28
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 347 bytes
コンパイル時間 207 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 291,536 KB
最終ジャッジ日時 2024-03-15 21:58:37
合計ジャッジ時間 8,196 ms
ジャッジサーバーID
(参考情報)
judge10 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
59,628 KB
testcase_01 AC 42 ms
59,628 KB
testcase_02 AC 41 ms
61,704 KB
testcase_03 AC 47 ms
61,704 KB
testcase_04 AC 42 ms
61,704 KB
testcase_05 AC 42 ms
61,704 KB
testcase_06 AC 43 ms
61,704 KB
testcase_07 AC 43 ms
61,704 KB
testcase_08 AC 44 ms
61,704 KB
testcase_09 AC 42 ms
61,704 KB
testcase_10 AC 42 ms
61,704 KB
testcase_11 AC 42 ms
61,704 KB
testcase_12 AC 42 ms
61,704 KB
testcase_13 AC 41 ms
61,704 KB
testcase_14 AC 45 ms
61,704 KB
testcase_15 AC 42 ms
61,704 KB
testcase_16 AC 42 ms
61,704 KB
testcase_17 AC 41 ms
61,704 KB
testcase_18 AC 43 ms
61,704 KB
testcase_19 AC 43 ms
61,704 KB
testcase_20 AC 42 ms
61,704 KB
testcase_21 AC 45 ms
61,704 KB
testcase_22 AC 42 ms
61,704 KB
testcase_23 AC 43 ms
61,704 KB
testcase_24 AC 42 ms
61,704 KB
testcase_25 AC 93 ms
78,868 KB
testcase_26 AC 93 ms
78,868 KB
testcase_27 AC 41 ms
61,704 KB
testcase_28 AC 42 ms
61,704 KB
testcase_29 AC 42 ms
61,704 KB
testcase_30 AC 134 ms
131,940 KB
testcase_31 AC 75 ms
96,352 KB
testcase_32 AC 68 ms
90,908 KB
testcase_33 AC 114 ms
111,136 KB
testcase_34 AC 132 ms
131,948 KB
testcase_35 AC 120 ms
116,248 KB
testcase_36 AC 130 ms
124,984 KB
testcase_37 AC 80 ms
102,172 KB
testcase_38 AC 144 ms
142,072 KB
testcase_39 AC 56 ms
76,288 KB
testcase_40 AC 96 ms
116,536 KB
testcase_41 AC 135 ms
124,984 KB
testcase_42 AC 115 ms
110,780 KB
testcase_43 AC 141 ms
141,924 KB
testcase_44 AC 115 ms
110,832 KB
testcase_45 AC 41 ms
59,956 KB
testcase_46 TLE -
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 = list(map(int, input().split()))

now = 0
for a in A:
    now ^= a
if now != 0:
    print('No')
    exit()

if N > 5000:
    print('Yes')
    exit()

dp = [0] * 8192
dp[0] = 1
for a in A:
    ndp = dp[:]
    for i in range(8192):
        ndp[i ^ a] += dp[i]
    dp = ndp[:]
if dp[0] >= 3:
    print('Yes')
else:
    print('No')
0