結果

問題 No.538 N.G.S.
ユーザー 🍮かんプリン
提出日時 2019-03-20 20:52:27
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 510 ms
コンパイル使用メモリ 60,552 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-19 00:51:11
合計ジャッジ時間 1,895 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 51
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <utility>
#include <algorithm>
#include <string>
#include <stack>
using ll = long long;
#define MOD 1000000007
using namespace std;

int main(){
    int a, b, c;
    cin >> a >> b >> c;
    cout << (ll)(c-b) * (c-b) / (b-a) + c << endl;
    return 0;
}
0