結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
58,112 KB
testcase_01 AC 48 ms
58,368 KB
testcase_02 AC 45 ms
59,008 KB
testcase_03 AC 50 ms
58,496 KB
testcase_04 AC 45 ms
58,240 KB
testcase_05 AC 45 ms
59,264 KB
testcase_06 AC 44 ms
58,240 KB
testcase_07 RE -
testcase_08 AC 435 ms
61,952 KB
testcase_09 AC 313 ms
61,568 KB
testcase_10 AC 366 ms
61,952 KB
testcase_11 AC 466 ms
62,464 KB
testcase_12 RE -
testcase_13 AC 43 ms
57,600 KB
testcase_14 AC 266 ms
61,568 KB
testcase_15 AC 483 ms
62,208 KB
testcase_16 AC 45 ms
58,624 KB
testcase_17 AC 143 ms
61,184 KB
testcase_18 RE -
testcase_19 AC 98 ms
60,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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