結果
| 問題 |
No.1175 Simultaneous Equations
|
| コンテスト | |
| ユーザー |
kekenx
|
| 提出日時 | 2024-01-10 10:27:09 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 424 bytes |
| コンパイル時間 | 774 ms |
| コンパイル使用メモリ | 72,108 KB |
| 最終ジャッジ日時 | 2025-02-18 17:02:28 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
#include <iostream>
#include <cassert>
#include <iomanip>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
double a, b, c, d, e, f; cin >> a >> b >> c >> d >> e >> f;
int bt = b;
a *= e;
b *= e;
c *= e;
d *= bt;
e *= bt;
f *= bt;
double x = (c - f) / (a - d);
double y = (c - a * x) / b;
cout << fixed << setprecision(16) << x << ' ' << y << endl;
return 0;
}
kekenx