結果
| 問題 |
No.1175 Simultaneous Equations
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-24 15:33:28 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 2,000 ms |
| コード長 | 390 bytes |
| コンパイル時間 | 3,759 ms |
| コンパイル使用メモリ | 250,572 KB |
| 最終ジャッジ日時 | 2025-02-20 13:39:00 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll = long long;
using ld = long double;
int main() {
int a, b, c, d, e, f;
cin >> a >> b >> c >> d >> e >> f;
double k = 1.0 / (a * e - b * d);
double x = e * c - b * f;
double y = a * f - c * d;
cout << fixed << setprecision(15) << k * x << ' ' << k * y << endl;
return 0;
}