結果

問題 No.538 N.G.S.
ユーザー RonlynesRonlynes
提出日時 2017-06-30 23:50:41
言語 C++11
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 236 bytes
コンパイル時間 583 ms
コンパイル使用メモリ 60,652 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-04 21:52:08
合計ジャッジ時間 1,788 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 3
other AC * 1 WA * 50
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <cmath>

using namespace std;

int main(void){
    double a, b, c;
    cin >> a >> b >> c;
    long long ans = round( (c*((b-c)/(a-b))+b) -(a*c-((b-c)/(a-b))*b));
    cout << ans << endl;
}
0