結果
| 問題 |
No.538 N.G.S.
|
| ユーザー |
A_ru8743731
|
| 提出日時 | 2017-07-09 14:24:43 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 528 bytes |
| コンパイル時間 | 717 ms |
| コンパイル使用メモリ | 79,952 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-25 00:16:46 |
| 合計ジャッジ時間 | 1,971 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 51 |
ソースコード
#include <iostream>
#include <sstream>
#include <vector>
#include <algorithm>
#include <string>
#include <functional>
#include <numeric>
#include <ctype.h>
#include <cstdlib>
#include <string.h>
#include <cmath>
#include <cstdio>
#include <map>
#include <queue>
#include <utility>
using namespace std;
const int INF = 1000000007;
const double PI = acos(-1.0);
typedef long long ll;
int dp[300];
int main()
{
ll b1, b2, b3;
cin >> b1 >> b2 >> b3;
cout << (b3 * (b3 - b2) + (b2 * b2 - b1 * b3)) / (b2 - b1) << endl;
}
A_ru8743731