結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー H3PO4H3PO4
提出日時 2020-05-11 11:08:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 2,809 ms / 5,000 ms
コード長 165 bytes
コンパイル時間 309 ms
コンパイル使用メモリ 87,080 KB
実行使用メモリ 208,312 KB
最終ジャッジ日時 2023-09-25 08:23:44
合計ジャッジ時間 15,890 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,420 KB
testcase_01 AC 70 ms
71,256 KB
testcase_02 AC 75 ms
76,060 KB
testcase_03 AC 74 ms
76,096 KB
testcase_04 AC 69 ms
71,252 KB
testcase_05 AC 76 ms
77,512 KB
testcase_06 AC 70 ms
71,492 KB
testcase_07 AC 2,809 ms
208,312 KB
testcase_08 AC 1,591 ms
146,040 KB
testcase_09 AC 1,113 ms
139,312 KB
testcase_10 AC 1,329 ms
141,932 KB
testcase_11 AC 1,718 ms
147,584 KB
testcase_12 AC 76 ms
80,168 KB
testcase_13 AC 68 ms
71,344 KB
testcase_14 AC 76 ms
76,468 KB
testcase_15 AC 1,762 ms
148,412 KB
testcase_16 AC 75 ms
75,956 KB
testcase_17 AC 476 ms
130,604 KB
testcase_18 AC 2,270 ms
201,812 KB
testcase_19 AC 282 ms
127,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

S = {0}
for a in A:
    new_S = S.copy()
    for s in S:
        new_S.add(s ^ a)
    S = new_S
print(len(S))
0