結果
問題 | No.1175 Simultaneous Equations |
ユーザー | face4 |
提出日時 | 2020-08-25 14:40:36 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 284 bytes |
コンパイル時間 | 825 ms |
コンパイル使用メモリ | 71,644 KB |
最終ジャッジ日時 | 2025-01-13 14:21:38 |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 |
ソースコード
#include<iostream> #include<iomanip> using namespace std; int main(){ double a, b, c, d, e, f; cin >> a >> b >> c >> d >> e >> f; double x = (c*e-b*f) / (a*e-b*d); double y = (c-a*x) / b; cout << fixed << setprecision(12) << x << " " << y << endl; return 0; }