結果

問題 No.2138 Add Bacon
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2022-12-01 07:58:34
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 103 ms / 2,000 ms
コード長 200 bytes
コンパイル時間 301 ms
コンパイル使用メモリ 87,108 KB
実行使用メモリ 73,256 KB
最終ジャッジ日時 2023-07-29 21:17:23
合計ジャッジ時間 5,012 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
73,008 KB
testcase_01 AC 100 ms
73,160 KB
testcase_02 AC 102 ms
72,964 KB
testcase_03 AC 101 ms
73,032 KB
testcase_04 AC 102 ms
73,072 KB
testcase_05 AC 102 ms
72,808 KB
testcase_06 AC 100 ms
72,976 KB
testcase_07 AC 98 ms
73,044 KB
testcase_08 AC 101 ms
72,908 KB
testcase_09 AC 99 ms
72,752 KB
testcase_10 AC 101 ms
73,032 KB
testcase_11 AC 101 ms
73,012 KB
testcase_12 AC 99 ms
73,156 KB
testcase_13 AC 101 ms
73,020 KB
testcase_14 AC 102 ms
72,956 KB
testcase_15 AC 100 ms
72,840 KB
testcase_16 AC 99 ms
73,256 KB
testcase_17 AC 100 ms
73,232 KB
testcase_18 AC 101 ms
73,036 KB
testcase_19 AC 103 ms
73,160 KB
testcase_20 AC 102 ms
72,888 KB
testcase_21 AC 102 ms
72,972 KB
testcase_22 AC 101 ms
73,128 KB
testcase_23 AC 100 ms
72,980 KB
testcase_24 AC 100 ms
72,976 KB
testcase_25 AC 102 ms
72,980 KB
testcase_26 AC 102 ms
73,036 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import *
from functools import *
from itertools import *
from heapq import *
import sys,math
input = sys.stdin.readline

A,B,C,D,E = map(int,input().split())
print(A-B+max(0,C*(D-E)))
0