結果

問題 No.1453 手助け
ユーザー convexineq
提出日時 2021-05-05 21:27:06
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 156 bytes
コンパイル時間 357 ms
コンパイル使用メモリ 82,080 KB
実行使用メモリ 59,380 KB
最終ジャッジ日時 2024-09-13 14:14:26
合計ジャッジ時間 2,200 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 19 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c,d,e = map(int,input().split())
ans = x = d
for i in range(2,a*(b-c)+1):
    if i%10==0 and e <= x:
        x = x-e
    ans += x            
print(ans)
0