結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー ohanaohana
提出日時 2023-11-24 10:22:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 3,299 ms / 5,000 ms
コード長 139 bytes
コンパイル時間 295 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 191,900 KB
最終ジャッジ日時 2023-11-24 10:22:37
合計ジャッジ時間 16,733 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,332 KB
testcase_01 AC 36 ms
53,332 KB
testcase_02 AC 39 ms
59,640 KB
testcase_03 AC 39 ms
59,512 KB
testcase_04 AC 36 ms
53,332 KB
testcase_05 AC 41 ms
60,920 KB
testcase_06 AC 35 ms
53,332 KB
testcase_07 AC 3,299 ms
191,900 KB
testcase_08 AC 1,792 ms
134,696 KB
testcase_09 AC 1,263 ms
131,404 KB
testcase_10 AC 1,500 ms
132,668 KB
testcase_11 AC 1,960 ms
135,536 KB
testcase_12 AC 44 ms
63,736 KB
testcase_13 AC 36 ms
53,332 KB
testcase_14 AC 43 ms
62,100 KB
testcase_15 AC 1,998 ms
135,964 KB
testcase_16 AC 40 ms
59,524 KB
testcase_17 AC 510 ms
127,112 KB
testcase_18 AC 2,595 ms
189,008 KB
testcase_19 AC 277 ms
125,640 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

S = set([0])

for a in A:
    for s in S.copy():
        S.add(s ^ a)

print(len(S))
0