結果

問題 No.2138 Add Bacon
ユーザー helloprahellopra
提出日時 2022-12-02 21:16:22
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 162 bytes
コンパイル時間 189 ms
コンパイル使用メモリ 82,828 KB
実行使用メモリ 54,432 KB
最終ジャッジ日時 2024-10-09 22:19:32
合計ジャッジ時間 2,229 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 17 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,C,D,E = map(int,input().split())
ans = A-B
tas = A+1-1
cal = B+1-1

for i in range(C+1):
    tas += D
    cal += E
    ans = max(ans,tas-cal)
    
print(ans)
0