結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー yaoshimaxyaoshimax
提出日時 2015-05-10 11:06:46
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 1,861 ms / 5,000 ms
コード長 266 bytes
コンパイル時間 1,189 ms
コンパイル使用メモリ 77,292 KB
実行使用メモリ 79,892 KB
最終ジャッジ日時 2023-09-11 11:18:33
合計ジャッジ時間 13,584 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
78,944 KB
testcase_01 AC 80 ms
78,740 KB
testcase_02 AC 85 ms
78,832 KB
testcase_03 AC 83 ms
78,836 KB
testcase_04 AC 81 ms
79,016 KB
testcase_05 AC 86 ms
79,080 KB
testcase_06 AC 82 ms
78,740 KB
testcase_07 AC 1,861 ms
79,892 KB
testcase_08 AC 1,262 ms
79,568 KB
testcase_09 AC 760 ms
79,480 KB
testcase_10 AC 1,058 ms
79,164 KB
testcase_11 AC 1,365 ms
79,472 KB
testcase_12 AC 84 ms
78,888 KB
testcase_13 AC 80 ms
78,832 KB
testcase_14 AC 639 ms
79,544 KB
testcase_15 AC 1,408 ms
79,624 KB
testcase_16 AC 85 ms
78,828 KB
testcase_17 AC 379 ms
79,640 KB
testcase_18 AC 1,562 ms
79,680 KB
testcase_19 AC 233 ms
78,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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