結果
| 問題 |
No.1175 Simultaneous Equations
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-18 13:28:44 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 475 ms / 2,000 ms |
| コード長 | 245 bytes |
| コンパイル時間 | 127 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 46,412 KB |
| 最終ジャッジ日時 | 2024-06-28 22:07:11 |
| 合計ジャッジ時間 | 7,395 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
import numpy as np
def main():
a, b, c, d, e, f = map(int, input().split())
A = np.matrix([(a, b), (d, e)])
b_ = np.array([[c], [f]])
x = np.dot(A**-1, b_)
print(x[0, 0], x[1, 0])
if __name__ == "__main__":
main()