-->
当前位置:首页 > 题库 > 正文内容

PROGRAMMING:Promotion fee (2008 Cixi)

Luz3年前 (2021-05-10)题库408
New year's Day is coming, all shopping malls are planning large-scale promotion activities. Cixi international shopping center plans to launch the activities of "reducing 120 for 300 yuan and reducing 240 for 500 yuan", that is, customers can get a discount of 120 yuan for every 300 yuan and 240 yuan for every 500 yuan of the total amount of goods they buy, with no ceiling. Therefore, the charging system of shopping malls needs to be upgraded. Please help Cixi international shopping center design one of the procedures, input the total amount of goods purchased by customers, that is, output the total amount of payment after the discount. Attention, must calculate according to the most favorable method!
###Input format:
There is only one line, which is the total amount n of various items purchased by customers( N is guaranteed to be an integer and N ≤ 2000000000)
###Output format:
There is only one line, that is, the amount of payment after the discount.
###Input example:
```in
three hundred and ten
```
###Output example:
```out
one hundred and ninety
```






answer:If there is no answer, please comment

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。