Gửi bài giải
Điểm:
1,00 (OI)
Giới hạn thời gian:
1.0s
Giới hạn bộ nhớ:
256M
Input:
stdin
Output:
stdout
Nguồn bài:
Dạng bài
Ngôn ngữ cho phép
C, C++, Java, Kotlin, Pascal, PyPy, Python, Scratch
To encourage customers to buy more products, your store run discounts as the following:
- For first ~100~ products, each product costs ~200~ VND
- For the next ~100~ products, each product costs ~199~ VND
- For the next ~100~ products, each product cost ~198~ VND.
- ~...~
However, to make sure that the store will get some benefits, the price must be never lower than ~180~ for each product.
Input
- The only line contains the number of product which a customer wants to buy (denoted by ~N~, ~0 \leq N \leq 10^5~)
Output
- Output the amount of money the customer must pay.
Example Input
250
Example Output
49800
Bình luận