結果
| 問題 | No.1453 手助け | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2021-05-27 21:53:03 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 173 bytes | 
| コンパイル時間 | 88 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 10,624 KB | 
| 最終ジャッジ日時 | 2024-11-06 14:48:00 | 
| 合計ジャッジ時間 | 1,718 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 9 WA * 12 | 
ソースコード
a,b,c,d,e=map(int,input().split())
n=(b-c)*a
s=0
for i in range(n):
    if (n+1)%10>0:
        s+=d
    elif d>e:
        s+=d
    else:
        s+=d-e
        d-=e
print(s)
            
            
            
        