結果
問題 |
No.538 N.G.S.
|
ユーザー |
![]() |
提出日時 | 2018-03-29 17:45:48 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 455 bytes |
コンパイル時間 | 684 ms |
コンパイル使用メモリ | 81,992 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-25 23:50:02 |
合計ジャッジ時間 | 2,360 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 37 WA * 14 |
ソースコード
#include <iostream> #include <vector> #include <string> #include <cstring> #include <math.h> #include <cmath> #include <limits.h> #include <map> #include <set> #include <queue> #include <algorithm> #include <functional> #include <stdio.h> using namespace std; long long MOD = 1000000007; int main() { double a,b,c; cin >> a >> b >> c; double r = (c-b)/(b-a); double d = b-a*r; cout << static_cast<int>(c*r+d) << endl; return 0; }