結果

問題 No.538 N.G.S.
ユーザー mirenai1997mirenai1997
提出日時 2017-07-09 19:36:22
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 252 bytes
コンパイル時間 638 ms
コンパイル使用メモリ 67,004 KB
最終ジャッジ日時 2025-01-05 01:28:07
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 42 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
using namespace std;
int main() {

	long long int a, b, c,ans;
	long double r,d;
	std::cin >> a;
	std::cin >> b;
	std::cin >> c;
	r = (double)(b - c) / (a - b);
	d = (double)b - r*a;
	ans = c*r + d;
	std::cout << noshowpoint<<ans;

}
0