結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,968 KB
testcase_01 AC 17 ms
7,832 KB
testcase_02 AC 19 ms
9,052 KB
testcase_03 AC 16 ms
8,276 KB
testcase_04 AC 16 ms
7,844 KB
testcase_05 AC 19 ms
9,720 KB
testcase_06 AC 15 ms
7,844 KB
testcase_07 AC 25 ms
12,556 KB
testcase_08 AC 22 ms
9,900 KB
testcase_09 AC 21 ms
9,920 KB
testcase_10 AC 22 ms
10,016 KB
testcase_11 AC 22 ms
9,952 KB
testcase_12 AC 23 ms
12,168 KB
testcase_13 AC 15 ms
7,964 KB
testcase_14 AC 17 ms
8,240 KB
testcase_15 AC 21 ms
10,064 KB
testcase_16 AC 16 ms
7,848 KB
testcase_17 AC 20 ms
9,724 KB
testcase_18 AC 26 ms
12,484 KB
testcase_19 AC 19 ms
9,828 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

_, *A = map(int, open(0).read().split())
x = {0}
for a in set(A):
    if a not in x:
        x |= {xi ^ a for xi in x}
print(len(x))
0