結果

問題 No.2138 Add Bacon
ユーザー shojin_pro
提出日時 2022-12-01 23:52:46
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 321 bytes
コンパイル時間 550 ms
コンパイル使用メモリ 65,276 KB
最終ジャッジ日時 2025-02-09 03:07:33
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

//なんや😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡
#include <iostream>
using namespace std;
int main(void){
    int arr[5];
    for(int i = 0; i < 5; i++) cin >> arr[i];
    cout << max(arr[0]-arr[1],arr[0]-arr[1]+arr[2]*(arr[3]-arr[4]));
}
0