結果

問題 No.538 N.G.S.
ユーザー Yut176Yut176
提出日時 2017-07-03 21:40:20
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 422 bytes
コンパイル時間 835 ms
コンパイル使用メモリ 86,924 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-25 00:09:10
合計ジャッジ時間 2,347 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 51
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstdlib>
#include<vector>
#include<string>
#include<sstream>
#include<cmath>
#include<numeric>
#include<map>
#include<stack>
#include<queue>
#include<list>
using namespace std;
int inf = 1000000000;

int main(void) {

  long long int b1, b2, b3;
  cin >> b1 >> b2 >> b3;
  cout << (b3*b3 - b3*b1 - b2*b3 + b2*b2) / (b2 - b1) << endl;

  return 0;
}

// EOF
0