結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー tora3kuma3tora3kuma3
提出日時 2015-04-17 22:33:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 25 ms / 5,000 ms
コード長 159 bytes
コンパイル時間 408 ms
コンパイル使用メモリ 10,688 KB
実行使用メモリ 12,560 KB
最終ジャッジ日時 2023-09-11 11:05:37
合計ジャッジ時間 1,393 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,812 KB
testcase_01 AC 16 ms
7,828 KB
testcase_02 AC 17 ms
9,128 KB
testcase_03 AC 16 ms
8,252 KB
testcase_04 AC 15 ms
7,800 KB
testcase_05 AC 19 ms
9,772 KB
testcase_06 AC 16 ms
7,732 KB
testcase_07 AC 25 ms
12,560 KB
testcase_08 AC 20 ms
10,020 KB
testcase_09 AC 21 ms
9,960 KB
testcase_10 AC 20 ms
9,976 KB
testcase_11 AC 21 ms
9,888 KB
testcase_12 AC 22 ms
12,136 KB
testcase_13 AC 15 ms
7,844 KB
testcase_14 AC 17 ms
7,732 KB
testcase_15 AC 21 ms
9,840 KB
testcase_16 AC 16 ms
7,876 KB
testcase_17 AC 19 ms
9,752 KB
testcase_18 AC 25 ms
12,468 KB
testcase_19 AC 19 ms
9,668 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin

stdin.readline()
x = {0}
for a in map(int, stdin.readline().split()):
    if a not in x:
        x |= {xi ^ a for xi in x}
print(len(x))
0