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

PROGRAMMING:Height of chimney

Luz5年前 (2021-05-10)题库390
It is known that the distance between a person and the chimney is $$a $$, the height of a person's eyes from the ground is $$B $$, the elevation angle when a person looks at the top of the chimney is $$- theta $$, and the height of the chimney is $$h $$.
![ Title. PNG] (~ / fe02d498-e348-4cbf-8bf3-2b7fe21af844. PNG)
####Input format
> $$a$$, $$b$$
> $$\theta$$
Note: the unit of $$a $, $$B $$is meter, which is decimal. The unit of elevation angle is degrees, minutes and seconds, where degrees and minutes are integers and seconds are decimals.
####Output format
> $$h$$
Note: the unit of $$h $$is meter.
Requirements: output 2 decimal places, rounding the last place.
####Input sample
```in
27.8 1.2
32 48 59.5
```
####Output sample
```out
nineteen point one three
```







answer:If there is no answer, please comment