結果
| 問題 |
No.1175 Simultaneous Equations
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-21 21:25:52 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 427 bytes |
| コンパイル時間 | 2,373 ms |
| コンパイル使用メモリ | 191,600 KB |
| 最終ジャッジ日時 | 2025-01-13 05:02:17 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
#include <bits/stdc++.h>
namespace solver{
void solve(){
std::cin.tie(0);
std::ios::sync_with_stdio(false);
double a, b, c, d, e, f; std::cin >> a >> b >> c >> d >> e >> f;
double A = (a * e - b * d);
double x = (c * e - b * f) / A;
double y = (a * f - c * d) / A;
std::cout << std::fixed << std::setprecision(12) << x << " " << y << "\n";
}
}
int main(){
solver::solve();
return 0;
}