結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー taba
提出日時 2016-04-16 22:09:38
言語 Python2
(2.7.18)
結果
AC  
実行時間 25 ms / 5,000 ms
コード長 141 bytes
コンパイル時間 335 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 10,712 KB
最終ジャッジ日時 2024-06-29 13:35:23
合計ジャッジ時間 1,401 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

n=input()
a=set(map(int,raw_input().split()))
x=set([0])
for i in a:
	if not i in x:
		for j in x.copy():
			x.add(j^i)
#print x
print len(x)
0