結果
| 問題 | 
                            No.1453 手助け
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2022-05-21 20:47:43 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 217 bytes | 
| コンパイル時間 | 145 ms | 
| コンパイル使用メモリ | 82,304 KB | 
| 実行使用メモリ | 58,112 KB | 
| 最終ジャッジ日時 | 2024-09-20 12:09:46 | 
| 合計ジャッジ時間 | 1,869 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 WA * 1 | 
| other | AC * 8 WA * 13 | 
ソースコード
a,b,c,d,e = map(int,input().split())
num = a * (b - c)
ans = d
now = d
for i in range(2,num + 1):
    if i % 10 != 0:
        ans += d
    else:
        if now >= e:
            now -= e
        ans += now
print(ans)