結果
| 問題 |
No.538 N.G.S.
|
| コンテスト | |
| ユーザー |
tamato
|
| 提出日時 | 2020-04-13 20:19:08 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 339 bytes |
| コンパイル時間 | 1,536 ms |
| コンパイル使用メモリ | 166,572 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-25 08:05:40 |
| 合計ジャッジ時間 | 2,963 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 32 WA * 19 |
ソースコード
#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 << int(c * ((b-c) / (a-b)) + ((a*c - b*b) / (a-b))) << endl;
}
tamato