結果
問題 |
No.1175 Simultaneous Equations
|
ユーザー |
![]() |
提出日時 | 2025-03-28 13:29:55 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 215 bytes |
コンパイル時間 | 395 ms |
コンパイル使用メモリ | 27,520 KB |
実行使用メモリ | 7,328 KB |
最終ジャッジ日時 | 2025-03-28 13:29:56 |
合計ジャッジ時間 | 1,331 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:5:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%lf %lf %lf %lf %lf %lf", &a, &b, &c, &d, &e, &f); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h> int main() { double a, b, c, d, e, f; scanf("%lf %lf %lf %lf %lf %lf", &a, &b, &c, &d, &e, &f); printf("%.20lf %.20lf\n", (e * c - b * f) / (e * a - b * d), (d * c - a * f) / (b * d - a * e)); }