結果

問題 No.538 N.G.S.
ユーザー startcppstartcpp
提出日時 2017-06-30 23:46:34
言語 C++11
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 520 ms
コンパイル使用メモリ 54,468 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-24 23:56:37
合計ジャッジ時間 1,682 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 51
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#define int long long
using namespace std;

int b[3];

signed main() {
	cin >> b[0] >> b[1] >> b[2];
	cout << (b[2] * (b[0] + b[1]) - b[1] * b[1] - b[2] * b[2]) / (b[0] - b[1]) << endl;
	return 0;
}
0