結果
問題 |
No.538 N.G.S.
|
ユーザー |
|
提出日時 | 2018-06-22 16:36:37 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 257 bytes |
コンパイル時間 | 667 ms |
コンパイル使用メモリ | 72,624 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 18:00:01 |
合計ジャッジ時間 | 2,155 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 30 WA * 21 |
ソースコード
#include <iostream> #include <algorithm> #include <vector> #include <cmath> using namespace std; int main(){ int x, y, z; cin >> x >> y >> z; double r = (y - z) / double(x - y); double d = y - r * x; cout << round(r * z + d) << endl; }