A. 【入门】行李托运费

    Type: Default 1000ms 16MiB

【入门】行李托运费

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.

Description

车站行李托运费标准是:10千克或10千克以下,每千克收费1.5元,超过10千克的行李,按每超过1千克增加2.5元进行收费。试编一程序,输入行李的托运费,算出行李的重量。 注意:本题是由 运费重量坑深

Input Format

读入一个实型值,表示行李的托运费。

Output Format

一个实型数,即行李的重量,保留两位小数。

3
2.0
22.5
13.0

Source

分支问题

课后训练2(双分支+多分支)

Not Claimed
Status
Done
Problem
4
Open Since
2025-12-13 0:00
Deadline
2025-12-20 23:59
Extension
24 hour(s)