結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー pluto77
提出日時 2016-04-09 18:23:02
言語 Python2
(2.7.18)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 187 bytes
コンパイル時間 329 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 9,600 KB
最終ジャッジ日時 2024-06-29 13:31:45
合計ジャッジ時間 1,104 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
# yuki_183

n=int(raw_input())
ls=list(map(int,raw_input().split()))

res=set([0])
for a in ls:
 if a not in res:
  for x in list(res):
   res.add(a ^ x)

print(len(res))
0