結果

問題 No.538 N.G.S.
ユーザー GB
提出日時 2018-11-26 23:48:50
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 236 bytes
コンパイル時間 438 ms
コンパイル使用メモリ 56,544 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-11 17:48:22
合計ジャッジ時間 2,140 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 51
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>

using namespace std;

typedef long long ll;

int main() {


	ll B1, B2, B3;
	
	cin >> B1 >> B2 >> B3;

	ll B4 = (B3 * B3 - B2 * B3 + B2 * B2 - B1 * B3) / (B2 - B1);
	cout << B4 << endl;

	return 0;
}
0