結果

問題 No.2138 Add Bacon
ユーザー yumechi
提出日時 2023-01-19 03:11:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 2,000 ms
コード長 143 bytes
コンパイル時間 569 ms
コンパイル使用メモリ 82,556 KB
実行使用メモリ 53,812 KB
最終ジャッジ日時 2024-06-12 02:54:47
合計ジャッジ時間 2,379 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve(a, b, c, d, e):
    if d <= e:
        return a - b
    return (a - b) + (d - e) * c

print(solve(*list(map(int, input().split()))))
0