結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー c_r_5c_r_5
提出日時 2018-09-12 19:33:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 880 ms / 5,000 ms
コード長 156 bytes
コンパイル時間 342 ms
コンパイル使用メモリ 87,224 KB
実行使用メモリ 77,052 KB
最終ジャッジ日時 2023-09-13 19:46:56
合計ジャッジ時間 8,286 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
76,188 KB
testcase_01 AC 81 ms
76,132 KB
testcase_02 AC 82 ms
76,428 KB
testcase_03 AC 81 ms
76,368 KB
testcase_04 AC 79 ms
75,896 KB
testcase_05 AC 83 ms
76,572 KB
testcase_06 AC 82 ms
76,004 KB
testcase_07 AC 880 ms
76,780 KB
testcase_08 AC 719 ms
76,868 KB
testcase_09 AC 516 ms
77,024 KB
testcase_10 AC 607 ms
76,800 KB
testcase_11 AC 770 ms
76,864 KB
testcase_12 AC 83 ms
76,432 KB
testcase_13 AC 80 ms
76,020 KB
testcase_14 AC 518 ms
76,916 KB
testcase_15 AC 797 ms
76,872 KB
testcase_16 AC 82 ms
76,296 KB
testcase_17 AC 242 ms
77,052 KB
testcase_18 AC 794 ms
76,904 KB
testcase_19 AC 159 ms
76,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,*A=map(int,open(0).read().split())
ans=[0]*32768
ans[0]=1
for a in A:
    for i in range(32768):
        if ans[i]:
            ans[i^a]=1
print(sum(ans))
0