結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー mlihua09mlihua09
提出日時 2020-08-28 20:42:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 541 ms / 5,000 ms
コード長 202 bytes
コンパイル時間 314 ms
コンパイル使用メモリ 87,196 KB
実行使用メモリ 77,056 KB
最終ジャッジ日時 2023-08-08 20:05:06
合計ジャッジ時間 5,887 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
76,036 KB
testcase_01 AC 77 ms
76,248 KB
testcase_02 AC 74 ms
76,400 KB
testcase_03 AC 74 ms
76,376 KB
testcase_04 AC 74 ms
76,164 KB
testcase_05 AC 75 ms
76,372 KB
testcase_06 AC 76 ms
76,064 KB
testcase_07 AC 486 ms
76,924 KB
testcase_08 AC 490 ms
76,924 KB
testcase_09 AC 358 ms
77,052 KB
testcase_10 AC 417 ms
76,924 KB
testcase_11 AC 523 ms
76,552 KB
testcase_12 AC 77 ms
76,432 KB
testcase_13 AC 72 ms
76,028 KB
testcase_14 AC 294 ms
76,840 KB
testcase_15 AC 541 ms
76,868 KB
testcase_16 AC 76 ms
76,304 KB
testcase_17 AC 178 ms
76,836 KB
testcase_18 AC 479 ms
77,056 KB
testcase_19 AC 126 ms
76,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

A = 0

x = [0] * 2 ** 15

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