1150: 计算车费1【系统函数】
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:69
Solved:17
Description
出租车的计费方式可以根据所行驶的的里程数,3公里以内(包括3公里)是10元,超过3公里的部分为2元/公里,超过10公里的部分为3元/公里。(不足1公里以1公里计算,4.1算作5)
Input
公里数
Output
出租车费用
Sample Input Copy
14.9
Sample Output Copy
39