結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー etale.K3etale.K3
提出日時 2021-07-26 08:55:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 26 ms / 5,000 ms
コード長 125 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 10,476 KB
実行使用メモリ 12,560 KB
最終ジャッジ日時 2023-09-29 02:56:51
合計ジャッジ時間 1,957 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,876 KB
testcase_01 AC 16 ms
7,724 KB
testcase_02 AC 18 ms
8,960 KB
testcase_03 AC 16 ms
8,244 KB
testcase_04 AC 16 ms
7,816 KB
testcase_05 AC 19 ms
9,708 KB
testcase_06 AC 15 ms
7,892 KB
testcase_07 AC 26 ms
12,560 KB
testcase_08 AC 21 ms
9,904 KB
testcase_09 AC 21 ms
9,836 KB
testcase_10 AC 21 ms
9,888 KB
testcase_11 AC 22 ms
10,080 KB
testcase_12 AC 23 ms
12,224 KB
testcase_13 AC 16 ms
7,872 KB
testcase_14 AC 17 ms
7,884 KB
testcase_15 AC 21 ms
10,136 KB
testcase_16 AC 16 ms
7,888 KB
testcase_17 AC 19 ms
9,680 KB
testcase_18 AC 26 ms
12,372 KB
testcase_19 AC 19 ms
9,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

input()
A = map(int, input().split())

X = {0}

for a in A:
    if a not in X:
        X |= {x ^ a for x in X}

print(len(X))
0