結果

問題 No.1453 手助け
ユーザー あかりき
提出日時 2021-04-13 16:39:12
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 196 bytes
コンパイル時間 243 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 59,136 KB
最終ジャッジ日時 2024-06-29 21:41:34
合計ジャッジ時間 2,024 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

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