Type: Default 1000ms 256MiB

购买电池

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Description

超市里的电池搞活动,每板电池10元钱,若数量超过10个,电池的价格打8折, 用程序解决此问题,每次输入电池的数量,输出应付多少钱?

Input Format

一个整数,买电池的数量。

Output Format

一个整数,表示花费的钱数。

Sample

input

7

output

70

Hint

时间限制:1s1 \text {s}

空间限制:256MB256 \text {MB}

20200906-贪心基础练习

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
11
Start at
2020-9-6 13:37
End at
2020-9-26 13:37
Duration
480 hour(s)
Host
Partic.
17