結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー ktshunktshun
提出日時 2015-06-04 23:38:48
言語 Python2
(2.7.18)
結果
AC  
実行時間 23 ms / 5,000 ms
コード長 220 bytes
コンパイル時間 892 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 9,360 KB
最終ジャッジ日時 2023-09-11 11:25:32
合計ジャッジ時間 2,130 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
5,960 KB
testcase_01 AC 11 ms
5,972 KB
testcase_02 AC 14 ms
6,672 KB
testcase_03 AC 12 ms
6,272 KB
testcase_04 AC 11 ms
6,204 KB
testcase_05 AC 15 ms
6,964 KB
testcase_06 AC 12 ms
6,072 KB
testcase_07 AC 23 ms
9,360 KB
testcase_08 AC 18 ms
7,240 KB
testcase_09 AC 17 ms
7,128 KB
testcase_10 AC 18 ms
7,164 KB
testcase_11 AC 19 ms
7,344 KB
testcase_12 AC 21 ms
9,156 KB
testcase_13 AC 11 ms
6,216 KB
testcase_14 AC 13 ms
6,144 KB
testcase_15 AC 19 ms
7,228 KB
testcase_16 AC 11 ms
6,296 KB
testcase_17 AC 16 ms
7,140 KB
testcase_18 AC 23 ms
9,348 KB
testcase_19 AC 16 ms
7,004 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding:utf-8 -*-

if __name__ == "__main__":
	n = input()
	a = map(int,raw_input().split())
	a = set(a)
	b = 0
	new = set([0])
	for i in a:
		if i not in new:
			for j in list(new):
				new.add(i^j)
	print len(new)
0