結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
59,384 KB
testcase_01 AC 43 ms
59,384 KB
testcase_02 AC 45 ms
61,708 KB
testcase_03 AC 45 ms
61,708 KB
testcase_04 AC 44 ms
61,700 KB
testcase_05 AC 43 ms
61,700 KB
testcase_06 AC 43 ms
61,708 KB
testcase_07 AC 44 ms
61,708 KB
testcase_08 AC 42 ms
61,708 KB
testcase_09 AC 41 ms
61,708 KB
testcase_10 AC 41 ms
61,708 KB
testcase_11 AC 44 ms
61,708 KB
testcase_12 AC 42 ms
61,708 KB
testcase_13 AC 41 ms
61,708 KB
testcase_14 AC 43 ms
61,708 KB
testcase_15 AC 43 ms
61,708 KB
testcase_16 AC 43 ms
61,708 KB
testcase_17 AC 42 ms
61,708 KB
testcase_18 AC 42 ms
61,708 KB
testcase_19 AC 43 ms
61,708 KB
testcase_20 AC 42 ms
61,708 KB
testcase_21 AC 42 ms
61,708 KB
testcase_22 AC 43 ms
61,708 KB
testcase_23 AC 44 ms
61,708 KB
testcase_24 AC 43 ms
61,708 KB
testcase_25 AC 99 ms
79,252 KB
testcase_26 AC 100 ms
79,252 KB
testcase_27 AC 43 ms
61,708 KB
testcase_28 AC 42 ms
61,708 KB
testcase_29 AC 42 ms
61,708 KB
testcase_30 AC 133 ms
131,928 KB
testcase_31 AC 75 ms
96,352 KB
testcase_32 AC 69 ms
90,908 KB
testcase_33 AC 114 ms
111,136 KB
testcase_34 AC 134 ms
131,936 KB
testcase_35 AC 121 ms
116,244 KB
testcase_36 AC 127 ms
124,968 KB
testcase_37 AC 80 ms
102,176 KB
testcase_38 AC 143 ms
142,064 KB
testcase_39 AC 55 ms
76,288 KB
testcase_40 AC 93 ms
116,544 KB
testcase_41 AC 128 ms
124,976 KB
testcase_42 AC 116 ms
110,784 KB
testcase_43 AC 138 ms
141,924 KB
testcase_44 AC 112 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] * 10010
dp[0] = 1
for a in A:
    ndp = dp[:]
    for i in range(9000):
        if not dp[i]:
            continue
        ndp[i ^ a] += dp[i]
    dp = ndp[:]
if dp[0] >= 3:
    print('Yes')
else:
    print('No')
0