結果

問題 No.538 N.G.S.
ユーザー Fujisaki_prpr
提出日時 2017-07-01 00:27:55
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 234 bytes
コンパイル時間 1,900 ms
コンパイル使用メモリ 165,648 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-25 00:01:48
合計ジャッジ時間 2,902 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 51
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std ;

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  double b3,b2,b1;
  cin >> b1 >> b2 >> b3;
  std::cout << (long long)(b3 + (b3-b2)*(b3-b2)/(b2-b1)) << std::endl;
  return 0;
}
0