結果
| 問題 |
No.2138 Add Bacon
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-12-03 23:19:34 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 613 bytes |
| コンパイル時間 | 1,637 ms |
| コンパイル使用メモリ | 192,676 KB |
| 最終ジャッジ日時 | 2025-02-09 04:49:38 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 25 |
ソースコード
#define _DE123BUG
#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
const long double pi = acos(-1.0);
const int INF = 1987654321;
// const int MOD = 1e9;
////
int main(){
#ifdef _DEBUG
freopen ("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
ios::sync_with_stdio(false);
cin.tie(NULL);
ll a, b, c, d, e; cin >> a >> b >> c >> d >> e;
if(d < e) cout << a - b << endl;
else cout << a-b + c * (d-e) << endl;
return 0;
}