結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー DrDrpilotDrDrpilot
提出日時 2022-02-10 12:18:31
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 209 bytes
コンパイル時間 1,727 ms
コンパイル使用メモリ 87,020 KB
実行使用メモリ 829,020 KB
最終ジャッジ日時 2023-09-08 01:32:13
合計ジャッジ時間 3,648 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
138,676 KB
testcase_01 AC 121 ms
185,592 KB
testcase_02 AC 164 ms
295,320 KB
testcase_03 AC 151 ms
264,464 KB
testcase_04 AC 107 ms
154,260 KB
testcase_05 AC 166 ms
310,828 KB
testcase_06 AC 122 ms
200,876 KB
testcase_07 MLE -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=list(map(int,input().split()))
dp=[[0]*2000000 for _ in range(n+1)]
dp[0][0]=1
for i in range(n):
    for j in range(20000):
        dp[i+1][j^a[i]]=dp[i][j] or dp[i][j^a[i]]
print(sum(dp[n]))
0