結果

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

ソースコード

diff #

from sys import stdin

stdin.readline()
x = {0}
for a in map(int, stdin.readline().split()):
    if a not in x:
        x |= {xi ^ a for xi in x}
print(len(x))
0