結果
| 問題 |
No.2441 行列累乗
|
| コンテスト | |
| ユーザー |
hibit_at
|
| 提出日時 | 2023-08-25 21:23:08 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 578 ms / 2,000 ms |
| コード長 | 182 bytes |
| コンパイル時間 | 305 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 44,060 KB |
| 最終ジャッジ日時 | 2024-12-24 07:44:59 |
| 合計ジャッジ時間 | 13,310 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
import numpy as np
c = list(map(int, input().split(' ')))
d = list(map(int, input().split(' ')))
a = np.array([c,d])
ans = np.matmul(a,np.matmul(a,a))
print(*ans[0])
print(*ans[1])
hibit_at