結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー tnoda_tnoda_
提出日時 2015-08-18 18:34:10
言語 Python2
(2.7.18)
結果
TLE  
実行時間 -
コード長 203 bytes
コンパイル時間 188 ms
コンパイル使用メモリ 6,672 KB
実行使用メモリ 10,820 KB
最終ジャッジ日時 2023-09-25 12:51:12
合計ジャッジ時間 7,168 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
6,068 KB
testcase_01 AC 25 ms
5,992 KB
testcase_02 AC 41 ms
6,064 KB
testcase_03 AC 36 ms
5,992 KB
testcase_04 AC 21 ms
5,940 KB
testcase_05 AC 44 ms
6,016 KB
testcase_06 AC 28 ms
6,192 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 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
A = map(int, raw_input().strip().split())

dp = [False] * (2 ** 15)
dp[0] = True
for a in A:
    for i in xrange(len(dp)):
        if dp[i]:
            dp[i ^ a] = True
print(dp.count(True))
0