#T557. 行李托运
行李托运
Description
The luggage托运 (checked baggage) fee standard at a certain station is as follows: for 10 kilograms or less, the fee is 2.5 yuan. For luggage exceeding 10 kilograms, an additional 1.5 yuan is charged for each extra kilogram.
Write a program that takes the weight of the luggage as input and calculates the托运 fee (rounded to one decimal place).
Input Format
One line: A floating-point number representing the weight of the luggage.
Output Format
One line: A floating-point number representing the托运 fee (rounded to one decimal place).
10
2.5
译文
CodesOnline