結果

問題 No.1175 Simultaneous Equations
ユーザー lloyzlloyz
提出日時 2022-02-08 01:03:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 193 bytes
コンパイル時間 659 ms
コンパイル使用メモリ 10,524 KB
実行使用メモリ 31,624 KB
最終ジャッジ日時 2023-09-04 20:28:03
合計ジャッジ時間 6,241 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
30,156 KB
testcase_01 AC 128 ms
31,624 KB
testcase_02 AC 127 ms
31,548 KB
testcase_03 AC 128 ms
29,852 KB
testcase_04 AC 128 ms
30,024 KB
testcase_05 AC 128 ms
29,984 KB
testcase_06 AC 127 ms
31,600 KB
testcase_07 AC 125 ms
30,004 KB
testcase_08 AC 128 ms
30,172 KB
testcase_09 AC 128 ms
30,048 KB
testcase_10 AC 129 ms
29,856 KB
testcase_11 AC 130 ms
29,808 KB
testcase_12 AC 129 ms
30,028 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np

a, b, c, d, e, f = map(int, input().split())
P = np.array([[a, b], [d, e]])
V = np.array([[c], [f]])
invP = np.linalg.inv(P)
X = invP.dot(V)
print(X[0][0], X[1][0])
0