結果
| 問題 |
No.538 N.G.S.
|
| コンテスト | |
| ユーザー |
torith
|
| 提出日時 | 2017-07-10 11:26:50 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 467 bytes |
| コンパイル時間 | 1,095 ms |
| コンパイル使用メモリ | 157,272 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-07 06:58:21 |
| 合計ジャッジ時間 | 2,302 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 47 WA * 4 |
ソースコード
/*
* 538.cpp
*/
//include files
#include<bits/stdc++.h>
using namespace std;
//DEFINE MACROS
#define MIN(a,b) (a>b?b:a)
#define MAX(a,b) (a>b?a:b)
#define PRINTLN(s) cout << s << endl
//DEFINE CONSTANT
//DEFINE PROTOTYPE
int main(){
long long int b1,b2,b3;
double r,d;
long long int answer;
cin >> b1;
cin >> b2;
cin >> b3;
r = (double) (b3 - b2) / (b2 - b1);
d = b2 - r * b1;
answer = b3*r + d ;
cout << answer << "\n";
return 0;
}
torith