結果

問題 No.2441 行列累乗
ユーザー VvyLwVvyLw
提出日時 2023-08-25 22:36:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 147 bytes
コンパイル時間 140 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 29,632 KB
最終ジャッジ日時 2023-08-25 22:36:26
合計ジャッジ時間 4,217 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
29,600 KB
testcase_01 AC 113 ms
29,500 KB
testcase_02 AC 116 ms
29,632 KB
testcase_03 AC 112 ms
29,448 KB
testcase_04 AC 113 ms
29,444 KB
testcase_05 AC 115 ms
29,580 KB
testcase_06 AC 117 ms
29,532 KB
testcase_07 AC 134 ms
29,612 KB
testcase_08 AC 110 ms
29,544 KB
testcase_09 AC 116 ms
29,620 KB
testcase_10 AC 109 ms
29,536 KB
testcase_11 AC 113 ms
29,564 KB
testcase_12 AC 114 ms
29,524 KB
testcase_13 AC 119 ms
29,532 KB
testcase_14 AC 115 ms
29,612 KB
testcase_15 AC 112 ms
29,628 KB
testcase_16 AC 130 ms
29,524 KB
testcase_17 AC 113 ms
29,452 KB
testcase_18 AC 112 ms
29,584 KB
testcase_19 AC 114 ms
29,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np
a,b=map(int,input().split())
c,d=map(int,input().split())
A=np.array([[a,b],[c,d]])
A=A@A@A
A.tolist()
print(*A[0])
print(*A[1])
0