結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー yaoshimaxyaoshimax
提出日時 2015-05-10 11:04:23
言語 PyPy2
(7.3.15)
結果
RE  
実行時間 -
コード長 254 bytes
コンパイル時間 589 ms
コンパイル使用メモリ 77,912 KB
実行使用メモリ 79,652 KB
最終ジャッジ日時 2023-09-19 09:43:31
合計ジャッジ時間 8,089 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
78,316 KB
testcase_01 AC 85 ms
78,788 KB
testcase_02 AC 87 ms
78,488 KB
testcase_03 AC 88 ms
78,908 KB
testcase_04 AC 88 ms
78,320 KB
testcase_05 AC 86 ms
78,632 KB
testcase_06 AC 89 ms
78,412 KB
testcase_07 RE -
testcase_08 AC 832 ms
79,384 KB
testcase_09 AC 596 ms
79,108 KB
testcase_10 AC 703 ms
79,080 KB
testcase_11 AC 896 ms
79,512 KB
testcase_12 RE -
testcase_13 AC 82 ms
78,300 KB
testcase_14 AC 365 ms
79,596 KB
testcase_15 AC 927 ms
79,404 KB
testcase_16 AC 86 ms
78,496 KB
testcase_17 AC 270 ms
79,024 KB
testcase_18 RE -
testcase_19 AC 178 ms
79,020 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(raw_input())
A=map(int,raw_input().split())
isOk=[False for i in range(1<<14)]
isOk[0]=True
for a in A:
    for i in range(1<<14):
        if isOk[i]:
            isOk[i^a]=True
ans=0
for i in range(1<<14):
    if isOk[i]:
        ans+=1
print ans
0