結果

問題 No.1175 Simultaneous Equations
ユーザー ssmkzkssmkzk
提出日時 2020-11-02 15:47:31
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 147 ms / 2,000 ms
コード長 186 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 10,772 KB
実行使用メモリ 31,508 KB
最終ジャッジ日時 2023-09-29 11:56:24
合計ジャッジ時間 4,334 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 147 ms
29,868 KB
testcase_01 AC 139 ms
31,496 KB
testcase_02 AC 137 ms
29,928 KB
testcase_03 AC 136 ms
29,884 KB
testcase_04 AC 134 ms
29,860 KB
testcase_05 AC 141 ms
29,872 KB
testcase_06 AC 139 ms
29,820 KB
testcase_07 AC 138 ms
29,872 KB
testcase_08 AC 131 ms
29,920 KB
testcase_09 AC 132 ms
31,508 KB
testcase_10 AC 133 ms
29,864 KB
testcase_11 AC 136 ms
29,988 KB
testcase_12 AC 134 ms
29,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np

a, b, c, d, e, f = map(int, input().split())

A = np.array([[a, b], [d, e]])
B = np.array([[c], [f]])
ans = np.dot(np.linalg.inv(A) , B)
print(ans[0][0], ans[1][0])

0