結果
問題 | No.538 N.G.S. |
ユーザー |
|
提出日時 | 2017-06-30 22:39:28 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 262 bytes |
コンパイル時間 | 590 ms |
コンパイル使用メモリ | 72,464 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-04 20:37:16 |
合計ジャッジ時間 | 1,894 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 30 WA * 21 |
ソースコード
#include <iostream> #include <map> #include <cmath> #define int long long #define EPS 1e-5 using namespace std; signed main() { double a,b,c,r,d; cin >> a >> b >> c; r = (c - b) / (b - a); d = b - a * r; cout << (int)(r * c + d + EPS) << endl; return 0; }