結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー ゆるくゆるく
提出日時 2015-05-04 17:46:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 26 ms / 5,000 ms
コード長 162 bytes
コンパイル時間 109 ms
コンパイル使用メモリ 10,576 KB
実行使用メモリ 11,480 KB
最終ジャッジ日時 2023-09-11 11:16:55
合計ジャッジ時間 1,690 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,832 KB
testcase_01 AC 15 ms
7,868 KB
testcase_02 AC 17 ms
8,784 KB
testcase_03 AC 16 ms
8,236 KB
testcase_04 AC 15 ms
7,744 KB
testcase_05 AC 19 ms
9,052 KB
testcase_06 AC 15 ms
7,816 KB
testcase_07 AC 25 ms
11,480 KB
testcase_08 AC 20 ms
9,412 KB
testcase_09 AC 20 ms
9,296 KB
testcase_10 AC 20 ms
9,284 KB
testcase_11 AC 21 ms
9,392 KB
testcase_12 AC 24 ms
11,160 KB
testcase_13 AC 16 ms
7,880 KB
testcase_14 AC 17 ms
8,220 KB
testcase_15 AC 21 ms
9,448 KB
testcase_16 AC 15 ms
7,816 KB
testcase_17 AC 19 ms
9,036 KB
testcase_18 AC 26 ms
11,480 KB
testcase_19 AC 19 ms
9,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))

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