-->
当前位置:首页 > 题库

PROGRAMMING:Calculate gas

Luz5年前 (2021-05-10)题库366
The gradient charging system is adopted for the gas in a residential area. When a household uses less than 10 cubic meters of gas (including 10 cubic meters), it charges 2 yuan per cubic meter of gas; When users use more than 10 cubic meters of gas, the cost of the excess part is 3 yuan per cubic meter.
###Input format:
Enter an integer greater than or equal to 0 and less than or equal to 100
###Output format:
Cost of direct gas export
###Input example:
Here is a set of inputs. For example:
```in
nine
```
###Output example:
The corresponding output is given here. For example:
```out
eighteen
```
###Input example:
Here is a set of inputs. For example:
```in
ten
```
###Output example:
The corresponding output is given here. For example:
```out
twenty
```
###Input example:
Here is a set of inputs. For example:
```in
eleven
```
###Output example:
The corresponding output is given here. For example:
```out
twenty-three
```







answer:If there is no answer, please comment