結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー TawaraTawara
提出日時 2015-08-27 18:44:22
言語 Python2
(2.7.18)
結果
AC  
実行時間 24 ms / 5,000 ms
コード長 166 bytes
コンパイル時間 610 ms
コンパイル使用メモリ 7,196 KB
実行使用メモリ 9,196 KB
最終ジャッジ日時 2023-09-11 12:13:36
合計ジャッジ時間 1,394 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,956 KB
testcase_01 AC 12 ms
6,012 KB
testcase_02 AC 14 ms
6,476 KB
testcase_03 AC 12 ms
6,056 KB
testcase_04 AC 11 ms
5,916 KB
testcase_05 AC 15 ms
6,908 KB
testcase_06 AC 12 ms
5,840 KB
testcase_07 AC 24 ms
9,056 KB
testcase_08 AC 18 ms
7,136 KB
testcase_09 AC 17 ms
7,080 KB
testcase_10 AC 18 ms
6,956 KB
testcase_11 AC 18 ms
6,976 KB
testcase_12 AC 20 ms
8,996 KB
testcase_13 AC 11 ms
5,888 KB
testcase_14 AC 14 ms
6,020 KB
testcase_15 AC 19 ms
7,120 KB
testcase_16 AC 11 ms
6,100 KB
testcase_17 AC 17 ms
6,904 KB
testcase_18 AC 24 ms
9,196 KB
testcase_19 AC 16 ms
6,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(raw_input())
A = map(int,raw_input().split())
N = len(A)
dp = {0}
for i in xrange(N):
	if A[i] not in dp:
		for v in list(dp):
			dp.add(v^A[i])
print len(dp)
0