結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー kyunakyuna
提出日時 2018-11-06 20:15:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 25 ms / 5,000 ms
コード長 161 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 10,744 KB
実行使用メモリ 12,584 KB
最終ジャッジ日時 2023-09-13 20:33:50
合計ジャッジ時間 1,332 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,860 KB
testcase_01 AC 15 ms
7,776 KB
testcase_02 AC 18 ms
8,948 KB
testcase_03 AC 16 ms
8,220 KB
testcase_04 AC 16 ms
7,712 KB
testcase_05 AC 19 ms
9,640 KB
testcase_06 AC 16 ms
7,772 KB
testcase_07 AC 25 ms
12,420 KB
testcase_08 AC 21 ms
9,964 KB
testcase_09 AC 20 ms
9,772 KB
testcase_10 AC 21 ms
9,868 KB
testcase_11 AC 21 ms
10,000 KB
testcase_12 AC 23 ms
12,164 KB
testcase_13 AC 16 ms
7,748 KB
testcase_14 AC 17 ms
7,856 KB
testcase_15 AC 22 ms
9,792 KB
testcase_16 AC 16 ms
7,800 KB
testcase_17 AC 20 ms
9,812 KB
testcase_18 AC 25 ms
12,584 KB
testcase_19 AC 20 ms
9,736 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