結果
問題 | No.1453 手助け |
ユーザー |
![]() |
提出日時 | 2021-03-31 21:03:54 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 47 ms / 2,000 ms |
コード長 | 247 bytes |
コンパイル時間 | 369 ms |
コンパイル使用メモリ | 82,164 KB |
実行使用メモリ | 59,364 KB |
最終ジャッジ日時 | 2024-12-15 09:08:07 |
合計ジャッジ時間 | 2,200 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
a,b,c,d,e=map(int,input().split()) b-=c b*=a ans=0 if b!=0: ans=d num=d for i in range(2,b+1): if i%10!=0: ans+=num else: if e<=num: num-=e ans+=num else: ans+=num print(ans)