結果
| 問題 | No.1175 Simultaneous Equations |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-26 22:57:08 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 389 bytes |
| 記録 | |
| コンパイル時間 | 549 ms |
| コンパイル使用メモリ | 68,736 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-28 19:33:52 |
| 合計ジャッジ時間 | 1,087 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 1 WA * 10 |
ソースコード
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
int a,b,c,d,e,f;
cin >> a >> b >> c >> d >> e >> f;
double y = (c*d - a*f) / (b*d - e*a); // xの係数をそろえ、yの値を求める
double x = (c - (b*y))/a; // 元の式にyの値を代入してxの値を求める
cout << fixed << setprecision(5) << x << " " << y << endl; // 出力
return 0;
}