結果
問題 |
No.1175 Simultaneous Equations
|
ユーザー |
|
提出日時 | 2022-02-07 05:19:45 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 366 bytes |
コンパイル時間 | 394 ms |
コンパイル使用メモリ | 82,236 KB |
実行使用メモリ | 54,448 KB |
最終ジャッジ日時 | 2024-06-11 18:38:57 |
合計ジャッジ時間 | 1,216 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 1 WA * 10 |
ソースコード
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 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)