結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー netyo715netyo715
提出日時 2021-07-15 15:17:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 2,248 ms / 5,000 ms
コード長 144 bytes
コンパイル時間 388 ms
コンパイル使用メモリ 87,192 KB
実行使用メモリ 259,236 KB
最終ジャッジ日時 2023-09-17 21:33:59
合計ジャッジ時間 12,318 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,152 KB
testcase_01 AC 73 ms
71,316 KB
testcase_02 AC 76 ms
76,064 KB
testcase_03 AC 80 ms
75,732 KB
testcase_04 AC 72 ms
71,448 KB
testcase_05 AC 77 ms
77,096 KB
testcase_06 AC 73 ms
71,452 KB
testcase_07 AC 2,248 ms
259,236 KB
testcase_08 AC 1,147 ms
90,484 KB
testcase_09 AC 817 ms
86,456 KB
testcase_10 AC 965 ms
88,048 KB
testcase_11 AC 1,232 ms
91,512 KB
testcase_12 AC 82 ms
79,816 KB
testcase_13 AC 72 ms
71,216 KB
testcase_14 AC 80 ms
76,592 KB
testcase_15 AC 1,281 ms
91,944 KB
testcase_16 AC 75 ms
76,200 KB
testcase_17 AC 344 ms
80,776 KB
testcase_18 AC 1,777 ms
259,156 KB
testcase_19 AC 205 ms
78,828 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
s = set([0])
for a in A:
    l = list(s)
    for ll in l:
        s.add(ll^a)
print(len(s))
0