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

PROGRAMMING:Hand out red envelopes

Luz5年前 (2021-05-10)题库563
The Sales Department of an enterprise shall distribute the red packets at the end of the year, and the distribution objects must meet three of the following conditions:
1. Full attendance of 300 days in a year;
2. The annual sales amount is 300000 yuan;
3. The annual sales volume reached 10000 pieces;
4. The annual sales profit reaches 100000 yuan;
5. Customer satisfaction reaches 80%.
####Input format
>Attendance days
>Sales amount (ten thousand yuan)
>Sales volume (10000 pieces)
>Sales profit (10000 yuan)
>Customer satisfaction (percentage)
####Output format
>If three of the conditions are met, output "Congratulations!"; Otherwise, output "sorry!".
####Input sample 1
```in
three hundred and two
fifty-two point eight
one point eight five
three point six
eighty-seven point five
```
####Output sample 1
```out
congratulations!
```
####Input sample 2
```in
two hundred and eighty-one
forty-eight point five
zero point nine
two point seven
eighty-five point one
```
####Output sample 2
```out
I'm sorry!
```







answer:If there is no answer, please comment