PROGRAMMING:Transportation discount
A transportation company calculates freight for users. The farther the distance (s), the lower the freight per kilometer. The criteria are as follows:
![ Capture. PNG] (~ / 414e65c0-a1d9-4419-8b0d-956a66b1e2a3. PNG)
Among them, the basic transportation cost is 1 yuan per ton per kilometer. Now please help the transportation company design an automatic billing program to help the accounting personnel calculate the transportation cost.
###Input format:
Enter the load (ton) and mileage (km) of each transportation.
###Output format:
Output its transportation cost, accurate to yuan.
###Input example:
Here is a set of inputs. For example:
```in
1 200
```
###Output example:
The corresponding output is given here. For example:
```out
two hundred
```
###Input example:
Here is a set of inputs. For example:
```in
10 2500
```
###Output example:
The corresponding output is given here. For example:
```out
twenty-two thousand and five hundred
```
answer:If there is no answer, please comment
```
w,s=map(float,input().split())
if 0<=s<250:
p=w*s
elif 250<=s<500:
p=w*s*0.98
elif 500<=s<1000:
p=w*s*0.95
elif 1000<=s<2000:
p=w*s*0.92
elif 2000<=s<3000:
p=w*s*0.9
else:
p=w*s*0.85
print("{:.0f}".format(p))
```
![ Capture. PNG] (~ / 414e65c0-a1d9-4419-8b0d-956a66b1e2a3. PNG)
Among them, the basic transportation cost is 1 yuan per ton per kilometer. Now please help the transportation company design an automatic billing program to help the accounting personnel calculate the transportation cost.
###Input format:
Enter the load (ton) and mileage (km) of each transportation.
###Output format:
Output its transportation cost, accurate to yuan.
###Input example:
Here is a set of inputs. For example:
```in
1 200
```
###Output example:
The corresponding output is given here. For example:
```out
two hundred
```
###Input example:
Here is a set of inputs. For example:
```in
10 2500
```
###Output example:
The corresponding output is given here. For example:
```out
twenty-two thousand and five hundred
```
answer:If there is no answer, please comment
```
w,s=map(float,input().split())
if 0<=s<250:
p=w*s
elif 250<=s<500:
p=w*s*0.98
elif 500<=s<1000:
p=w*s*0.95
elif 1000<=s<2000:
p=w*s*0.92
elif 2000<=s<3000:
p=w*s*0.9
else:
p=w*s*0.85
print("{:.0f}".format(p))
```