結果

問題 No.538 N.G.S.
ユーザー Hoget157Hoget157
提出日時 2017-06-30 22:41:07
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 276 bytes
コンパイル時間 678 ms
コンパイル使用メモリ 72,064 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-04 20:39:25
合計ジャッジ時間 1,779 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 41 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0