結果

問題 No.1175 Simultaneous Equations
ユーザー kichi2004_kichi2004_
提出日時 2020-08-21 21:23:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 478 ms / 2,000 ms
コード長 177 bytes
コンパイル時間 119 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 44,552 KB
最終ジャッジ日時 2024-04-23 05:21:02
合計ジャッジ時間 6,967 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 478 ms
44,304 KB
testcase_01 AC 443 ms
44,292 KB
testcase_02 AC 447 ms
44,156 KB
testcase_03 AC 456 ms
44,176 KB
testcase_04 AC 450 ms
44,424 KB
testcase_05 AC 448 ms
44,172 KB
testcase_06 AC 448 ms
44,428 KB
testcase_07 AC 462 ms
44,436 KB
testcase_08 AC 461 ms
44,184 KB
testcase_09 AC 457 ms
44,552 KB
testcase_10 AC 446 ms
44,312 KB
testcase_11 AC 448 ms
44,464 KB
testcase_12 AC 445 ms
44,160 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np

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

a1 = np.array([[a, b], [d, e]])
a2 = np.array([c, f])

ans0, ans1 = np.linalg.solve(a1, a2)

print(ans0, ans1)
0