結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー ゆるく
提出日時 2015-05-04 17:46:04
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 41 ms / 5,000 ms
コード長 162 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 14,080 KB
最終ジャッジ日時 2024-06-29 01:56:26
合計ジャッジ時間 1,516 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

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