結果

問題 No.184 たのしい排他的論理和(HARD)
ユーザー H3PO4H3PO4
提出日時 2020-05-25 20:06:41
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 1,900 ms / 5,000 ms
コード長 211 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 10,748 KB
実行使用メモリ 258,904 KB
最終ジャッジ日時 2023-09-17 18:15:38
合計ジャッジ時間 38,194 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 136 ms
30,408 KB
testcase_01 AC 136 ms
30,496 KB
testcase_02 AC 136 ms
30,480 KB
testcase_03 AC 135 ms
30,524 KB
testcase_04 AC 136 ms
30,356 KB
testcase_05 AC 133 ms
30,412 KB
testcase_06 AC 133 ms
30,396 KB
testcase_07 AC 138 ms
30,324 KB
testcase_08 AC 1,374 ms
188,112 KB
testcase_09 AC 371 ms
56,392 KB
testcase_10 AC 1,036 ms
123,588 KB
testcase_11 AC 765 ms
98,684 KB
testcase_12 AC 1,580 ms
219,196 KB
testcase_13 AC 1,709 ms
227,804 KB
testcase_14 AC 978 ms
119,824 KB
testcase_15 AC 1,861 ms
251,296 KB
testcase_16 AC 1,559 ms
214,816 KB
testcase_17 AC 1,669 ms
229,356 KB
testcase_18 AC 129 ms
30,700 KB
testcase_19 AC 128 ms
30,208 KB
testcase_20 AC 1,268 ms
202,428 KB
testcase_21 AC 1,894 ms
258,904 KB
testcase_22 AC 1,900 ms
204,252 KB
testcase_23 AC 133 ms
30,684 KB
testcase_24 AC 134 ms
30,364 KB
testcase_25 AC 132 ms
30,404 KB
testcase_26 AC 131 ms
30,352 KB
testcase_27 AC 129 ms
30,372 KB
testcase_28 AC 1,162 ms
135,680 KB
testcase_29 AC 1,641 ms
225,460 KB
testcase_30 AC 1,451 ms
202,664 KB
testcase_31 AC 1,260 ms
179,724 KB
testcase_32 AC 1,553 ms
216,712 KB
testcase_33 AC 1,870 ms
252,280 KB
testcase_34 AC 1,852 ms
249,720 KB
testcase_35 AC 1,881 ms
256,936 KB
testcase_36 AC 1,874 ms
255,900 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np


def tobit(x):
    x = int(x)
    return [((x >> i) & 1) for i in range(70)]


N = int(input())
A = np.array(list(map(tobit, input().split())))

x = np.linalg.matrix_rank(A)
print(pow(2, x))
0