#P1395. 行李收费
行李收费
題目描述
乘坐飞机时,当乘客行李小于等于20公斤时,按每公斤1.68元收费,大于20公斤时,按每公
斤1.98元收费,编程计算收费(保留2位小数)。
輸入格式
行李重量
輸出格式
费用(保留2位小数)
Samples
20.00
33.60
原始資料
- Zero1 題號:
b396 - Hydro 題號:
Z1396 - Locale:
en_US - Display:
open
乘坐飞机时,当乘客行李小于等于20公斤时,按每公斤1.68元收费,大于20公斤时,按每公
斤1.98元收费,编程计算收费(保留2位小数)。
行李重量
费用(保留2位小数)
20.00
33.60
b396Z1396en_USopenBy signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.