結果
問題 |
No.1453 手助け
|
ユーザー |
![]() |
提出日時 | 2021-03-31 21:03:41 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 241 bytes |
コンパイル時間 | 194 ms |
コンパイル使用メモリ | 82,384 KB |
実行使用メモリ | 67,568 KB |
最終ジャッジ日時 | 2024-12-15 09:07:24 |
合計ジャッジ時間 | 2,376 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 RE * 1 |
other | AC * 19 RE * 2 |
ソースコード
a,b,c,d,e=map(int,input().split()) b-=c b*=a 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)