結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー bellangeldindonbellangeldindon
提出日時 2019-05-14 14:24:59
言語 Python2
(2.7.18)
結果
TLE  
実行時間 -
コード長 292 bytes
コンパイル時間 574 ms
コンパイル使用メモリ 6,572 KB
実行使用メモリ 8,768 KB
最終ジャッジ日時 2023-09-25 15:27:34
合計ジャッジ時間 7,792 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
7,352 KB
testcase_01 AC 31 ms
7,292 KB
testcase_02 AC 49 ms
7,252 KB
testcase_03 AC 43 ms
7,300 KB
testcase_04 AC 28 ms
7,296 KB
testcase_05 AC 53 ms
7,176 KB
testcase_06 AC 33 ms
7,308 KB
testcase_07 TLE -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(raw_input())
intlist = []
for i in range(0, 32768):
	intlist.append(False)
intlist[0] = True
A = map(int, raw_input().split())
for i in range(0, N):
	for j in range(0, 32768):
		if intlist[j]: intlist[j^A[i]] = True
cnt = 0
for i in range(0, 32768):
	if intlist[i]: cnt += 1
print cnt
0