結果
問題 | No.183 たのしい排他的論理和(EASY) |
ユーザー | DrDrpilot |
提出日時 | 2022-02-10 12:23:24 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
MLE
|
実行時間 | - |
コード長 | 208 bytes |
コンパイル時間 | 199 ms |
コンパイル使用メモリ | 10,776 KB |
実行使用メモリ | 816,936 KB |
最終ジャッジ日時 | 2023-09-08 01:37:36 |
合計ジャッジ時間 | 3,841 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 42 ms
9,412 KB |
testcase_01 | AC | 61 ms
10,076 KB |
testcase_02 | AC | 115 ms
12,572 KB |
testcase_03 | AC | 101 ms
11,708 KB |
testcase_04 | AC | 47 ms
9,668 KB |
testcase_05 | AC | 126 ms
12,844 KB |
testcase_06 | AC | 70 ms
10,356 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 | -- | - |
ソースコード
n=int(input()) a=list(map(int,input().split())) dp=[[0]*40000 for _ in range(n+1)] dp[0][0]=1 for i in range(n): for j in range(16385): dp[i+1][j^a[i]]=dp[i][j] or dp[i][j^a[i]] print(sum(dp[n]))