【例16.3】 收费
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.
说明
乘坐飞机时,当乘客行李小于等于公斤时,按每公斤元收费,大于公斤时,按每公斤元收费,编程计算收费(保留位小数)。
输入格式
行李重量。
输出格式
费用(保留位小数)。
样例
20.0033.60
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.
乘坐飞机时,当乘客行李小于等于20公斤时,按每公斤1.68元收费,大于20公斤时,按每公斤1.98元收费,编程计算收费(保留2位小数)。
行李重量。
费用(保留2位小数)。
20.0033.60
By signing up a 战码少年-战码青少年编程(专业信息学奥赛编程训练) universal account, you can submit code and join discussions in all online judging services provided by us.