結果

問題 No.2441 行列累乗
ユーザー t98slidert98slider
提出日時 2023-06-10 11:20:24
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 128 ms / 2,000 ms
コード長 173 bytes
コンパイル時間 203 ms
コンパイル使用メモリ 10,644 KB
実行使用メモリ 29,676 KB
最終ジャッジ日時 2023-08-30 20:41:56
合計ジャッジ時間 3,753 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
29,612 KB
testcase_01 AC 123 ms
29,560 KB
testcase_02 AC 122 ms
29,676 KB
testcase_03 AC 124 ms
29,616 KB
testcase_04 AC 125 ms
29,548 KB
testcase_05 AC 125 ms
29,396 KB
testcase_06 AC 125 ms
29,576 KB
testcase_07 AC 125 ms
29,572 KB
testcase_08 AC 126 ms
29,512 KB
testcase_09 AC 125 ms
29,456 KB
testcase_10 AC 128 ms
29,528 KB
testcase_11 AC 127 ms
29,532 KB
testcase_12 AC 126 ms
29,652 KB
testcase_13 AC 127 ms
29,540 KB
testcase_14 AC 127 ms
29,548 KB
testcase_15 AC 126 ms
29,452 KB
testcase_16 AC 127 ms
29,452 KB
testcase_17 AC 128 ms
29,500 KB
testcase_18 AC 127 ms
29,524 KB
testcase_19 AC 127 ms
29,464 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import numpy

a, b = map(int, input().split())
c, d = map(int, input().split())
M = numpy.matrix([[a, b], [c, d]])

numpy.savetxt(sys.stdout, M * M * M, fmt='%i')
0