結果

問題 No.2441 行列累乗
ユーザー t98slidert98slider
提出日時 2023-06-10 10:27:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 136 bytes
コンパイル時間 228 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 29,720 KB
最終ジャッジ日時 2023-08-30 20:15:38
合計ジャッジ時間 3,844 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
29,540 KB
testcase_01 AC 124 ms
29,456 KB
testcase_02 AC 123 ms
29,492 KB
testcase_03 AC 124 ms
29,428 KB
testcase_04 AC 123 ms
29,532 KB
testcase_05 AC 127 ms
29,640 KB
testcase_06 AC 127 ms
29,568 KB
testcase_07 AC 127 ms
29,720 KB
testcase_08 AC 127 ms
29,576 KB
testcase_09 AC 126 ms
29,536 KB
testcase_10 AC 126 ms
29,500 KB
testcase_11 AC 126 ms
29,456 KB
testcase_12 AC 125 ms
29,596 KB
testcase_13 AC 125 ms
29,588 KB
testcase_14 AC 124 ms
29,632 KB
testcase_15 AC 125 ms
29,532 KB
testcase_16 AC 126 ms
29,432 KB
testcase_17 AC 125 ms
29,620 KB
testcase_18 AC 123 ms
29,564 KB
testcase_19 AC 122 ms
29,544 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy
a,b=map(int,input().split())
c,d=map(int,input().split())
M=numpy.matrix([[a,b],[c,d]])
for v in (M*M*M).tolist():print(*v)
0