結果
| 問題 |
No.538 N.G.S.
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-06-30 22:45:22 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 299 bytes |
| コンパイル時間 | 677 ms |
| コンパイル使用メモリ | 72,380 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-05 16:27:36 |
| 合計ジャッジ時間 | 2,071 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 47 WA * 4 |
ソースコード
#include <iostream>
#include <map>
#include <cmath>
#define int long long
#define EPS 1e-9
#define INF 1e+9
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 + (r * c + d) * EPS / INF) << endl;
return 0;
}