結果
問題 | No.183 たのしい排他的論理和(EASY) |
ユーザー | bellangeldindon |
提出日時 | 2019-05-10 16:21:23 |
言語 | Python2 (2.7.18) |
結果 |
TLE
|
実行時間 | - |
コード長 | 286 bytes |
コンパイル時間 | 58 ms |
コンパイル使用メモリ | 6,660 KB |
実行使用メモリ | 12,232 KB |
最終ジャッジ日時 | 2023-09-14 17:56:39 |
合計ジャッジ時間 | 9,761 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 11 ms
6,044 KB |
testcase_01 | AC | 11 ms
6,012 KB |
testcase_02 | AC | 563 ms
6,256 KB |
testcase_03 | AC | 47 ms
6,020 KB |
testcase_04 | AC | 12 ms
5,824 KB |
testcase_05 | AC | 2,235 ms
6,832 KB |
testcase_06 | AC | 12 ms
5,960 KB |
testcase_07 | TLE | - |
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(raw_input()) A = map(int, raw_input().split()) dp = [[0]] for i in range(0, N): newdp = [] for j in range(0, len(dp[i])): newdp.append(dp[i][j]) for j in range(0, len(dp[i])): if dp[i][j] ^ A[i] not in newdp: newdp.append(dp[i][j]^A[i]) dp.append(newdp) print len(dp[N])