-->
当前位置:首页 > 题库

PROGRAMMING:"Hand chopping"

Luz5年前 (2021-05-10)题库488
Ziquan likes online shopping very much. In a shop, she takes a fancy to a dress. She knows that if today is "double 11" (November 11), the dress will be given a 7.5% discount, and "double 12" (December 12), the dress will be given a 8.5% discount. If there is a coupon, she can reduce an extra 75 yuan (the coupon can only be used in double 11 or double 12), so as to find out how much money Ziquan will eventually spend.
###Input format:
There are four numbers in a row. The first number represents the price of clothes Ziquan likes. The second and third integers represent the month of the day and the date of the day respectively. The fourth integer represents whether there are coupons (1 for coupons and 0 for no coupons).
###Output format:
One line, the actual amount of money spent by Ziquan (with two decimal places reserved)( Tip: don't expect the merchant to give you money instead.)
###Input sample 1:
```in
1000.0 11 11 1
```
###Output sample 1:
```out
six hundred and seventy-five
```
###Input sample 2:
```in
999.8 12 12 0
```
###Output sample 2:
```out
eight hundred and forty-nine point eight three
```







answer:If there is no answer, please comment