結果

問題 No.1175 Simultaneous Equations
ユーザー tonyu0tonyu0
提出日時 2020-08-21 22:54:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 450 ms / 2,000 ms
コード長 170 bytes
コンパイル時間 78 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 46,388 KB
最終ジャッジ日時 2024-04-23 06:20:09
合計ジャッジ時間 6,783 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 446 ms
44,544 KB
testcase_01 AC 438 ms
44,684 KB
testcase_02 AC 441 ms
44,304 KB
testcase_03 AC 446 ms
44,308 KB
testcase_04 AC 434 ms
45,012 KB
testcase_05 AC 445 ms
46,140 KB
testcase_06 AC 442 ms
44,684 KB
testcase_07 AC 450 ms
44,300 KB
testcase_08 AC 438 ms
44,300 KB
testcase_09 AC 440 ms
46,264 KB
testcase_10 AC 444 ms
46,156 KB
testcase_11 AC 447 ms
46,036 KB
testcase_12 AC 439 ms
46,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np
a, b, c, d, e, f = map(float, input().split())


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