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

PROGRAMMING:The height of the house

Luz5年前 (2021-05-10)题库519
As we all know, Kun, as the richest man in Inner Mongolia, has a sea view house in Inner Mongolia. At the top of the house, you can see the Pacific Ocean (approximately as a point in the two-dimensional plane). We really want to know how rich Kun is and how high its house is. We can estimate the height of the house in Kun in the following ways (because the house in Kun is too high, we can approximately think that the height of the highest floor of the house is equal to the height of the house).
![ 7ca9392889.jpg](~/1fad4804-f069-44ea-90c3-8448eb304fc1.jpg)
If the model is abstracted in a two-dimensional plane and the earth is regarded as a circle, the line BD represents the house of Kun. It is known that the radius of the earth is $$R $$(the length of $$AB $$in the figure). Once, Kun used an advanced distance measuring instrument to measure the distance from the roof to the Pacific Ocean, which is $$d $$(the length of $$CD $$in the figure). Can you calculate the height of Kun's house according to the above information?
###Input format:
Two integers in a row represent the radius of the earth and the distance from the roof to the Pacific Ocean$$ 1\le r,d \le 10^5$$)
###Output format:
A line of a real number represents the height of the Kun sea view room, to ensure that the answer is an integer.
###Input example:
```in
3 4
```
###Output example:
The corresponding output is given here. For example:
```out
two
```







answer:If there is no answer, please comment