結果
| 問題 |
No.1175 Simultaneous Equations
|
| コンテスト | |
| ユーザー |
双六
|
| 提出日時 | 2020-08-21 21:25:58 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 525 ms / 2,000 ms |
| コード長 | 444 bytes |
| コンパイル時間 | 328 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 44,580 KB |
| 最終ジャッジ日時 | 2024-10-15 05:06:55 |
| 合計ジャッジ時間 | 8,318 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
import sys; input = sys.stdin.buffer.readline
sys.setrecursionlimit(10**7)
from collections import defaultdict
con = 10 ** 9 + 7; INF = float("inf")
def getlist():
return list(map(int, input().split()))
import numpy as np
#処理内容
def main():
a, b, c, d, e, f = getlist()
val = a * e - b * d
ans = np.array([[e, -b], [-d, a]]) @ np.array([[c], [f]])
ans = ans / val
print(ans[0][0], ans[1][0])
if __name__ == '__main__':
main()
双六