結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー mlihua09mlihua09
提出日時 2020-08-28 20:42:06
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 208 bytes
コンパイル時間 295 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 70,252 KB
最終ジャッジ日時 2024-04-26 12:31:27
合計ジャッジ時間 4,702 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
58,556 KB
testcase_01 AC 39 ms
60,200 KB
testcase_02 AC 43 ms
59,580 KB
testcase_03 AC 41 ms
59,384 KB
testcase_04 AC 40 ms
58,136 KB
testcase_05 AC 41 ms
59,056 KB
testcase_06 AC 44 ms
60,456 KB
testcase_07 RE -
testcase_08 AC 447 ms
61,184 KB
testcase_09 AC 322 ms
60,928 KB
testcase_10 AC 379 ms
60,928 KB
testcase_11 AC 488 ms
61,056 KB
testcase_12 RE -
testcase_13 AC 41 ms
57,728 KB
testcase_14 AC 259 ms
60,800 KB
testcase_15 AC 501 ms
61,312 KB
testcase_16 AC 43 ms
59,136 KB
testcase_17 AC 147 ms
60,544 KB
testcase_18 RE -
testcase_19 AC 95 ms
60,544 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

A = 0

x = [0] * (2 ** 14 + 1)

x[0] = 1

for a in map(int, input().split()):
    
    for i in range(2 ** 14):
        
        if x[i]:
            
            x[i ^ a] = 1

print(sum(x))
0