結果
問題 |
No.1175 Simultaneous Equations
|
ユーザー |
![]() |
提出日時 | 2023-08-27 20:42:56 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 368 bytes |
コンパイル時間 | 1,237 ms |
コンパイル使用メモリ | 98,592 KB |
最終ジャッジ日時 | 2025-02-16 15:17:32 |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 |
ソースコード
#include<iostream> #include<map> #include<vector> #include <algorithm> #include<math.h> #include <iomanip> #include<set> #include <numeric> #include<string> using namespace std; int main() { int a, b, c, d, e, f; cin >> a >> b >> c >> d >> e >> f; if ((b*d - a*e) != 0) cout << (c*e - b*f)*1./(-b*d + a*e) << " " << (c*d - f*a)*1./(b*d - a*e) << endl; }