結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー ShirotsumeShirotsume
提出日時 2021-11-04 00:28:10
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 248 bytes
コンパイル時間 799 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 76,160 KB
最終ジャッジ日時 2024-04-21 17:42:30
合計ジャッジ時間 7,974 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
59,648 KB
testcase_01 AC 54 ms
59,776 KB
testcase_02 AC 72 ms
70,656 KB
testcase_03 AC 67 ms
66,176 KB
testcase_04 AC 54 ms
59,776 KB
testcase_05 AC 78 ms
76,160 KB
testcase_06 AC 54 ms
59,904 KB
testcase_07 TLE -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int,input().split()))
from collections import Counter
import copy
dp = Counter()

dp[0] = 1

for i in range(n):
    E = copy.deepcopy(dp)
    for v in dp.keys():
        E[v ^ a[i]] = 1
    dp = E
print(len(dp.keys()))
0