結果

問題 No.1175 Simultaneous Equations
ユーザー hiragnhiragn
提出日時 2022-11-22 16:09:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 521 ms / 2,000 ms
コード長 225 bytes
コンパイル時間 541 ms
コンパイル使用メモリ 11,856 KB
実行使用メモリ 42,516 KB
最終ジャッジ日時 2023-10-24 08:53:13
合計ジャッジ時間 9,494 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 521 ms
42,408 KB
testcase_01 AC 476 ms
42,404 KB
testcase_02 AC 471 ms
42,404 KB
testcase_03 AC 482 ms
42,404 KB
testcase_04 AC 509 ms
42,404 KB
testcase_05 AC 484 ms
42,404 KB
testcase_06 AC 480 ms
42,404 KB
testcase_07 AC 483 ms
42,404 KB
testcase_08 AC 490 ms
42,404 KB
testcase_09 AC 491 ms
42,404 KB
testcase_10 AC 496 ms
42,404 KB
testcase_11 AC 496 ms
42,404 KB
testcase_12 AC 486 ms
42,516 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np


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

    left = [[a, b], [d, e]]
    right = [c, f]
    ans = np.linalg.solve(left, right)
    print(*ans)


if __name__ == "__main__":
    main()
0