結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー yakeshibayakeshiba
提出日時 2021-03-11 21:50:03
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 192 bytes
コンパイル時間 364 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 69,504 KB
最終ジャッジ日時 2024-04-21 10:13:30
合計ジャッジ時間 4,431 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
57,728 KB
testcase_01 AC 42 ms
58,240 KB
testcase_02 AC 46 ms
59,008 KB
testcase_03 AC 44 ms
58,624 KB
testcase_04 AC 43 ms
58,240 KB
testcase_05 AC 50 ms
58,496 KB
testcase_06 AC 43 ms
58,496 KB
testcase_07 RE -
testcase_08 AC 401 ms
62,336 KB
testcase_09 AC 294 ms
61,696 KB
testcase_10 AC 342 ms
61,952 KB
testcase_11 AC 429 ms
61,952 KB
testcase_12 RE -
testcase_13 AC 43 ms
57,344 KB
testcase_14 AC 246 ms
61,312 KB
testcase_15 AC 447 ms
61,696 KB
testcase_16 AC 47 ms
58,496 KB
testcase_17 AC 137 ms
61,184 KB
testcase_18 RE -
testcase_19 AC 91 ms
60,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

dp = [0]*(2**14+1)
dp[0] = 1
for a in A:
    for i in range(2**14+1):
        if dp[i]:
            dp[i^a] = 1
            
print(sum(dp))
0