結果

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

ソースコード

diff #

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