結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
6,232 KB
testcase_01 AC 25 ms
6,056 KB
testcase_02 AC 40 ms
6,072 KB
testcase_03 AC 35 ms
6,052 KB
testcase_04 AC 21 ms
6,060 KB
testcase_05 AC 44 ms
6,144 KB
testcase_06 AC 28 ms
6,040 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] * (1 << 15)
dp[0] = True
for a in A:
    for i in xrange(len(dp)):
        if dp[i]:
            dp[a ^ i] = True
print(dp.count(True))
0