結果

問題 No.3224 2×2行列入門
ユーザー Carpenters-Cat
提出日時 2025-08-11 04:32:24
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 277 bytes
コンパイル時間 340 ms
コンパイル使用メモリ 12,160 KB
実行使用メモリ 31,648 KB
最終ジャッジ日時 2025-08-11 04:32:37
合計ジャッジ時間 12,427 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np
a, b = map(int, input().split())
c, d = map(int ,input().split())
w, x = map(int, input().split())
y, z = map(int, input().split())
A = np.array([[a, b], [c, d]])
B = np.array([[w, x], [y, z]])
ans = A @ B @ A @ B
for p in ans :
	for q in p :
		print(int(q))
0