#1152. 【入门】行李托运费-2
【入门】行李托运费-2
说明
乘坐飞机时,当乘客行李小于等于20公斤时,按每公斤1.68元收费,大于20公斤时,按每公斤1.98元收费,编程计算收费(保留2位小数)。输入格式
一个数,表示行李重量(单位:公斤)。输出格式
行李托运费,保留2位小数。20.5
40.59
20.5
40.59
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.