結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,924 KB
testcase_01 AC 12 ms
5,980 KB
testcase_02 AC 15 ms
6,660 KB
testcase_03 AC 12 ms
6,132 KB
testcase_04 AC 11 ms
5,928 KB
testcase_05 AC 17 ms
6,944 KB
testcase_06 AC 12 ms
6,060 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 = set([0])
for a in A:
    for x in list(dp):
        if a ^ x not in dp:
            dp.add(a ^ x)
print(len(dp))
0