結果
| 問題 | No.538 N.G.S. |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-06-30 22:41:07 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 276 bytes |
| 記録 | |
| コンパイル時間 | 388 ms |
| コンパイル使用メモリ | 89,876 KB |
| 実行使用メモリ | 7,976 KB |
| 最終ジャッジ日時 | 2026-04-20 13:58:32 |
| 合計ジャッジ時間 | 2,001 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 41 WA * 10 |
ソースコード
#include <iostream>
#include <map>
#include <cmath>
#define int long long
#define EPS 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) << endl;
return 0;
}