結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー pluto77pluto77
提出日時 2016-04-09 18:23:02
言語 Python2
(2.7.18)
結果
AC  
実行時間 22 ms / 5,000 ms
コード長 187 bytes
コンパイル時間 104 ms
コンパイル使用メモリ 6,716 KB
実行使用メモリ 9,148 KB
最終ジャッジ日時 2023-09-12 00:18:44
合計ジャッジ時間 1,389 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
5,892 KB
testcase_01 AC 10 ms
5,896 KB
testcase_02 AC 13 ms
6,432 KB
testcase_03 AC 11 ms
5,984 KB
testcase_04 AC 11 ms
5,948 KB
testcase_05 AC 15 ms
6,840 KB
testcase_06 AC 11 ms
5,932 KB
testcase_07 AC 22 ms
9,148 KB
testcase_08 AC 17 ms
6,936 KB
testcase_09 AC 16 ms
6,888 KB
testcase_10 AC 16 ms
6,908 KB
testcase_11 AC 16 ms
7,024 KB
testcase_12 AC 19 ms
8,900 KB
testcase_13 AC 11 ms
6,108 KB
testcase_14 AC 13 ms
5,968 KB
testcase_15 AC 17 ms
6,960 KB
testcase_16 AC 11 ms
5,976 KB
testcase_17 AC 15 ms
6,720 KB
testcase_18 AC 21 ms
9,136 KB
testcase_19 AC 15 ms
6,828 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
# yuki_183

n=int(raw_input())
ls=list(map(int,raw_input().split()))

res=set([0])
for a in ls:
 if a not in res:
  for x in list(res):
   res.add(a ^ x)

print(len(res))
0