Problem GH: 期末测试005--计算车费

Problem GH: 期末测试005--计算车费

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

SubmitProblemList

Description

周末,迈克和爸爸打车到游乐场玩。打车方案是:2公里内起步价10元;超过2公里不超过10公里的部分按照1.85元/千米计价。超过10公里之后超过部分按照2.75元/千米计价。输入行驶路程。试求支付打车费用是多少?

Input

1个整数,在1-100之间。

Output

1行,包含1个浮点数,表示打车费用,保留小数点后1位。 printf("%.1lf",值);

Sample Input Copy

13

Sample Output Copy

33.0