結果
| 問題 |
No.1175 Simultaneous Equations
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-07 05:22:30 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 2,000 ms |
| コード長 | 388 bytes |
| コンパイル時間 | 477 ms |
| コンパイル使用メモリ | 82,100 KB |
| 実行使用メモリ | 54,148 KB |
| 最終ジャッジ日時 | 2024-06-11 18:43:38 |
| 合計ジャッジ時間 | 1,214 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
import math
def yukicoder1175_SimultaneousEquations(a, b, c, d, e, f):
lc = a * d / math.gcd(a, d)
b *= lc / a
c *= lc / a
e *= lc / d
f *= lc / d
a = lc
d = lc
g = b - e
h = c - f
y = h / g
x = (c - (b * y)) / a
print(x, y)
a, b, c, d, e, f = map(int, open(0).read().split())
yukicoder1175_SimultaneousEquations(a, b, c, d, e, f)