結果

問題 No.184 たのしい排他的論理和(HARD)
ユーザー 👑 rin204rin204
提出日時 2022-07-06 08:06:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 175 ms / 5,000 ms
コード長 179 bytes
コンパイル時間 290 ms
コンパイル使用メモリ 87,128 KB
実行使用メモリ 94,420 KB
最終ジャッジ日時 2023-08-23 02:03:06
合計ジャッジ時間 7,483 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,340 KB
testcase_01 AC 76 ms
71,220 KB
testcase_02 AC 73 ms
71,048 KB
testcase_03 AC 73 ms
71,336 KB
testcase_04 AC 73 ms
71,252 KB
testcase_05 AC 72 ms
71,324 KB
testcase_06 AC 72 ms
71,232 KB
testcase_07 AC 72 ms
71,520 KB
testcase_08 AC 145 ms
88,584 KB
testcase_09 AC 93 ms
76,776 KB
testcase_10 AC 128 ms
85,220 KB
testcase_11 AC 110 ms
82,048 KB
testcase_12 AC 155 ms
91,748 KB
testcase_13 AC 164 ms
92,196 KB
testcase_14 AC 124 ms
84,944 KB
testcase_15 AC 172 ms
93,956 KB
testcase_16 AC 151 ms
89,980 KB
testcase_17 AC 163 ms
91,968 KB
testcase_18 AC 74 ms
75,592 KB
testcase_19 AC 72 ms
71,584 KB
testcase_20 AC 90 ms
89,316 KB
testcase_21 AC 171 ms
93,588 KB
testcase_22 AC 174 ms
93,600 KB
testcase_23 AC 72 ms
71,312 KB
testcase_24 AC 70 ms
71,440 KB
testcase_25 AC 71 ms
71,244 KB
testcase_26 AC 71 ms
71,256 KB
testcase_27 AC 69 ms
71,268 KB
testcase_28 AC 128 ms
86,524 KB
testcase_29 AC 152 ms
92,056 KB
testcase_30 AC 144 ms
89,640 KB
testcase_31 AC 133 ms
87,916 KB
testcase_32 AC 154 ms
90,348 KB
testcase_33 AC 171 ms
94,420 KB
testcase_34 AC 167 ms
93,800 KB
testcase_35 AC 173 ms
94,280 KB
testcase_36 AC 175 ms
94,192 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
A = list(map(int, input().split()))
base = []
for a in A:
    for b in base:
        a = min(a, a ^ b)
    if a != 0:
        base.append(a)
print(1 << len(base))
0