Electricity bill
Xem dạng PDF
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
Dạng bài
Ngôn ngữ cho phép
C, C++, Java, Kotlin, Pascal, PyPy, Python, Scratch, TEXT
Electricity Bill
The electricity company calculates the electricity bill using the following pricing scheme:
- The first
100 kWhcost200 VND/kWh. - The next
1000 kWhcost500 VND/kWh. - The next
2000 kWhcost1,000 VND/kWh. - The next
5000 kWhcost10,000 VND/kWh. - The next
10,000 kWhcost12,000 VND/kWh. - Any remaining electricity usage costs
100,000 VND/kWh.
Given that k kWh of electricity is consumed, calculate the total amount to pay.
Input
The input contains a single integer k.
k <= 10^9
Output
Output the total amount of money to pay.
Example
Input
150
Output
45000
Bình luận