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

PROGRAMMING:Swimming pool renovation

Luz5年前 (2021-05-10)题库403
A circular swimming pool is shown in the picture. Now it is necessary to build a circular passage around it and fence around it. The price of the fence is 35 yuan / m, and the cost of the corridor is 20 yuan / m2. The radius of the swimming pool and the width of the aisle are input by the keyboard. It is required to calculate and output the cost of aisle and fence.
![ Swimming pool. PNG] (~ / 7a08ad96-69ef-42b8-9889-114a2010c7a0. PNG)
###Input format:
Input a and B respectively. A is the radius of the pool and B is the width of the aisle.
###Output format:
For each set of inputs, output the cost of the fence in the first line. The cost of the output aisle on the second line.
###Input example:
Here is a set of inputs. For example:
```in
10 3
```
###Output example:
The corresponding output is given here. For example:
```out
two thousand eight hundred and fifty-eight point eight five
four thousand three hundred and thirty-five point four
```







answer:If there is no answer, please comment