結果
| 問題 |
No.2138 Add Bacon
|
| コンテスト | |
| ユーザー |
Wizist
|
| 提出日時 | 2022-12-05 01:12:24 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 221 bytes |
| コンパイル時間 | 1,420 ms |
| コンパイル使用メモリ | 167,436 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-12 01:08:54 |
| 合計ジャッジ時間 | 2,317 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 25 |
ソースコード
// No.2138 Add Bacon
#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[])
{
long long a, b, c, d, e;
cin >> a >> b >> c >> d >> e;
cout << a - b + max(0ll, d - e) * c << endl;
return 0;
}
Wizist