結果
問題 | No.1175 Simultaneous Equations |
ユーザー | eve__fuyuki |
提出日時 | 2024-05-10 20:03:10 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 407 bytes |
コンパイル時間 | 2,064 ms |
コンパイル使用メモリ | 201,472 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-20 04:10:33 |
合計ジャッジ時間 | 2,855 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 |
ソースコード
#include <bits/stdc++.h> using namespace std; void fast_io() { ios::sync_with_stdio(false); std::cin.tie(nullptr); } int main() { fast_io(); int a, b, c, d, e, f; cin >> a >> b >> c >> d >> e >> f; int det = a * e - b * d; double x = (e * c - b * f) / (double)det; double y = (a * f - c * d) / (double)det; cout << setprecision(16) << fixed << x << " " << y << endl; }