結果

問題 No.184 たのしい排他的論理和(HARD)
ユーザー qibqib
提出日時 2023-02-12 15:23:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 176 ms / 5,000 ms
コード長 200 bytes
コンパイル時間 356 ms
コンパイル使用メモリ 87,232 KB
実行使用メモリ 94,156 KB
最終ジャッジ日時 2023-09-23 05:27:42
合計ジャッジ時間 7,699 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
70,956 KB
testcase_01 AC 72 ms
71,144 KB
testcase_02 AC 73 ms
71,140 KB
testcase_03 AC 74 ms
71,240 KB
testcase_04 AC 74 ms
70,752 KB
testcase_05 AC 74 ms
71,260 KB
testcase_06 AC 73 ms
71,060 KB
testcase_07 AC 73 ms
71,148 KB
testcase_08 AC 146 ms
88,300 KB
testcase_09 AC 92 ms
76,888 KB
testcase_10 AC 128 ms
84,884 KB
testcase_11 AC 113 ms
81,636 KB
testcase_12 AC 156 ms
91,648 KB
testcase_13 AC 166 ms
92,192 KB
testcase_14 AC 127 ms
84,696 KB
testcase_15 AC 166 ms
93,668 KB
testcase_16 AC 156 ms
90,028 KB
testcase_17 AC 163 ms
92,056 KB
testcase_18 AC 78 ms
75,776 KB
testcase_19 AC 75 ms
71,008 KB
testcase_20 AC 96 ms
88,896 KB
testcase_21 AC 176 ms
93,312 KB
testcase_22 AC 175 ms
93,628 KB
testcase_23 AC 74 ms
71,196 KB
testcase_24 AC 74 ms
71,008 KB
testcase_25 AC 75 ms
71,184 KB
testcase_26 AC 75 ms
71,060 KB
testcase_27 AC 74 ms
70,932 KB
testcase_28 AC 133 ms
86,244 KB
testcase_29 AC 156 ms
91,804 KB
testcase_30 AC 148 ms
89,772 KB
testcase_31 AC 140 ms
87,676 KB
testcase_32 AC 151 ms
90,188 KB
testcase_33 AC 171 ms
93,900 KB
testcase_34 AC 167 ms
93,740 KB
testcase_35 AC 171 ms
93,880 KB
testcase_36 AC 174 ms
94,156 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))

# XOR基底掃き出し
base = [0]
for v in a:
  for e in base:
    v = min(v, v ^ e)
  if v > 0:
    base.append(v)

print(pow(2, len(base) - 1))
0