結果
問題 |
No.538 N.G.S.
|
ユーザー |
![]() |
提出日時 | 2020-04-13 20:23:09 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 341 bytes |
コンパイル時間 | 1,598 ms |
コンパイル使用メモリ | 166,368 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-25 08:09:59 |
合計ジャッジ時間 | 3,374 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 30 WA * 21 |
ソースコード
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; using ll = long long; using pii = pair<int, int>; int main() { cin.tie(0); ios::sync_with_stdio(false); float a, b, c; cin >> a >> b >> c; cout << round(c * ((b-c) / (a-b)) + ((a*c - b*b) / (a-b))) << endl; }