結果
問題 | No.1175 Simultaneous Equations |
ユーザー |
|
提出日時 | 2020-11-05 23:18:02 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 391 bytes |
コンパイル時間 | 1,928 ms |
コンパイル使用メモリ | 192,888 KB |
最終ジャッジ日時 | 2025-01-15 20:00:42 |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 |
ソースコード
#include <bits/stdc++.h>using namespace std;#define ALL(v) v.begin(), v.end()#define V vector#define P pairusing ll = long long;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 * d - a * f) / (b * d - a * e);cout << setprecision(16) << x << " " << y << endl;return 0;}