結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー tnoda_tnoda_
提出日時 2015-08-18 18:48:45
言語 Python2
(2.7.18)
結果
AC  
実行時間 23 ms / 5,000 ms
コード長 168 bytes
コンパイル時間 1,278 ms
コンパイル使用メモリ 6,488 KB
実行使用メモリ 9,268 KB
最終ジャッジ日時 2023-09-11 12:07:10
合計ジャッジ時間 1,439 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,180 KB
testcase_01 AC 11 ms
5,940 KB
testcase_02 AC 14 ms
6,616 KB
testcase_03 AC 12 ms
6,276 KB
testcase_04 AC 11 ms
6,156 KB
testcase_05 AC 15 ms
6,836 KB
testcase_06 AC 12 ms
6,052 KB
testcase_07 AC 23 ms
9,216 KB
testcase_08 AC 17 ms
7,160 KB
testcase_09 AC 17 ms
7,004 KB
testcase_10 AC 17 ms
7,068 KB
testcase_11 AC 18 ms
7,168 KB
testcase_12 AC 20 ms
9,104 KB
testcase_13 AC 11 ms
6,008 KB
testcase_14 AC 13 ms
6,096 KB
testcase_15 AC 17 ms
7,092 KB
testcase_16 AC 11 ms
6,052 KB
testcase_17 AC 15 ms
7,100 KB
testcase_18 AC 22 ms
9,268 KB
testcase_19 AC 15 ms
6,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

dp = set([0])
for a in A:
    if a not in dp:
        for x in list(dp):
            dp.add(a ^ x)
print(len(dp))
0