結果

問題 No.2441 行列累乗
ユーザー nautnaut
提出日時 2023-09-02 11:07:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 194 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 10,716 KB
実行使用メモリ 29,716 KB
最終ジャッジ日時 2023-09-02 11:07:36
合計ジャッジ時間 6,155 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
29,364 KB
testcase_01 AC 129 ms
29,544 KB
testcase_02 AC 130 ms
29,564 KB
testcase_03 AC 126 ms
29,384 KB
testcase_04 AC 126 ms
29,452 KB
testcase_05 AC 128 ms
29,512 KB
testcase_06 AC 136 ms
29,460 KB
testcase_07 AC 129 ms
29,400 KB
testcase_08 AC 128 ms
29,364 KB
testcase_09 AC 127 ms
29,360 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy

def main():
    M = [list(map(int, input().split())) for _ in range(2)]
    M = numpy.array(M)

    M = M * M * M

    print(M[0, 0], M[0, 1])
    print(M[1, 0], M[1, 1])


main()
0