結果
問題 | No.183 たのしい排他的論理和(EASY) |
ユーザー | DrDrpilot |
提出日時 | 2022-02-10 12:23:04 |
言語 | PyPy3 (7.3.15) |
結果 |
MLE
|
実行時間 | - |
コード長 | 208 bytes |
コンパイル時間 | 624 ms |
コンパイル使用メモリ | 86,980 KB |
実行使用メモリ | 848,780 KB |
最終ジャッジ日時 | 2023-09-08 01:37:00 |
合計ジャッジ時間 | 3,500 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 80 ms
77,436 KB |
testcase_01 | AC | 77 ms
78,312 KB |
testcase_02 | AC | 83 ms
80,528 KB |
testcase_03 | AC | 83 ms
79,816 KB |
testcase_04 | AC | 77 ms
77,668 KB |
testcase_05 | AC | 81 ms
80,824 KB |
testcase_06 | AC | 78 ms
78,392 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]))