結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー qewqewqewqewqewqew
提出日時 2018-12-15 01:51:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 184 bytes
コンパイル時間 424 ms
コンパイル使用メモリ 11,672 KB
実行使用メモリ 16,784 KB
最終ジャッジ日時 2023-10-25 10:40:32
合計ジャッジ時間 7,395 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
15,084 KB
testcase_01 AC 27 ms
10,076 KB
testcase_02 AC 29 ms
10,792 KB
testcase_03 AC 29 ms
10,232 KB
testcase_04 AC 26 ms
10,056 KB
testcase_05 AC 30 ms
11,756 KB
testcase_06 AC 27 ms
10,056 KB
testcase_07 TLE -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = set(map(int, input().split()))
ables = set([0])
for i in a:
    tmp = []
    for j in ables:
        tmp.append(j^i)
    ables = ables | set(tmp)
print(len(ables))
0