結果

問題 No.1453 手助け
ユーザー HAGI_TARO
提出日時 2021-08-19 08:14:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 211 bytes
コンパイル時間 305 ms
コンパイル使用メモリ 82,272 KB
実行使用メモリ 59,192 KB
最終ジャッジ日時 2024-10-12 05:34:58
合計ジャッジ時間 2,380 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c,d,e = map(int,input().split())
n = a * (b - c)
ans = 0
for i in range(1,n+1):
    if i % 10 != 0:
        ans += d
    elif d >= e:
        ans += d - e
        d -= e
    else:
        ans += d
print(ans)
0