結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー tabataba
提出日時 2016-04-16 22:09:38
言語 Python2
(2.7.18)
結果
AC  
実行時間 25 ms / 5,000 ms
コード長 141 bytes
コンパイル時間 70 ms
コンパイル使用メモリ 6,712 KB
実行使用メモリ 10,460 KB
最終ジャッジ日時 2023-09-12 00:24:27
合計ジャッジ時間 1,677 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,224 KB
testcase_01 AC 11 ms
6,000 KB
testcase_02 AC 13 ms
7,112 KB
testcase_03 AC 12 ms
6,192 KB
testcase_04 AC 11 ms
6,036 KB
testcase_05 AC 16 ms
7,340 KB
testcase_06 AC 12 ms
6,116 KB
testcase_07 AC 24 ms
10,308 KB
testcase_08 AC 19 ms
7,588 KB
testcase_09 AC 18 ms
7,644 KB
testcase_10 AC 18 ms
7,548 KB
testcase_11 AC 19 ms
7,488 KB
testcase_12 AC 22 ms
10,052 KB
testcase_13 AC 11 ms
6,032 KB
testcase_14 AC 13 ms
6,136 KB
testcase_15 AC 19 ms
7,444 KB
testcase_16 AC 11 ms
6,128 KB
testcase_17 AC 17 ms
7,448 KB
testcase_18 AC 25 ms
10,460 KB
testcase_19 AC 16 ms
7,400 KB
権限があれば一括ダウンロードができます

ソースコード

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