結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー lllllll88938494lllllll88938494
提出日時 2022-05-23 23:46:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 996 ms / 5,000 ms
コード長 221 bytes
コンパイル時間 144 ms
コンパイル使用メモリ 81,832 KB
実行使用メモリ 62,640 KB
最終ジャッジ日時 2023-10-20 17:48:17
合計ジャッジ時間 7,115 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
59,792 KB
testcase_01 AC 41 ms
59,792 KB
testcase_02 AC 41 ms
59,992 KB
testcase_03 AC 41 ms
59,992 KB
testcase_04 AC 41 ms
59,792 KB
testcase_05 AC 42 ms
59,992 KB
testcase_06 AC 41 ms
59,792 KB
testcase_07 AC 996 ms
62,640 KB
testcase_08 AC 693 ms
62,640 KB
testcase_09 AC 489 ms
62,640 KB
testcase_10 AC 573 ms
62,640 KB
testcase_11 AC 739 ms
62,640 KB
testcase_12 AC 42 ms
60,000 KB
testcase_13 AC 37 ms
59,780 KB
testcase_14 AC 314 ms
62,640 KB
testcase_15 AC 766 ms
62,640 KB
testcase_16 AC 42 ms
59,992 KB
testcase_17 AC 203 ms
62,640 KB
testcase_18 AC 823 ms
62,640 KB
testcase_19 AC 138 ms
60,396 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
ns=list(map(int,input().split()))
dp= [0]*((2<<14)+1)
dp[0]=1

for i in range(n):
    for j in range((2<<14)+1):
        if dp[j] == 0:
            continue
        dp[j ^ ns[i]] = 1
        
print(sum(dp))
0