結果
問題 | No.538 N.G.S. |
ユーザー |
|
提出日時 | 2017-06-30 22:49:10 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 287 bytes |
コンパイル時間 | 1,386 ms |
コンパイル使用メモリ | 165,108 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-04 20:47:53 |
合計ジャッジ時間 | 2,788 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 30 WA * 21 |
ソースコード
//#define _GRIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; #define int long long auto main() -> signed { double a, b, c; cin >> a >> b >> c; double r = (b - c) / (a - b); double d = b - r*a; double ans = r*c+d; cout << ans << endl; return 0; }