407178: GYM102697 149 Pythagorean Theorem

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

149. Pythagorean Theoremtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

For this problem, you will be given two side lengths of a triangle and will be required to determine the length of the other side. You can assume that all input will be provided for a valid right triangle. The two side lengths you will be given correspond to the common variables $$$A$$$ and $$$C$$$, meaning one side and the hypotenuse. You should then output the length of side $$$B$$$.

Input

Two space-separated integer values that represent $$$A$$$ and $$$C$$$ respectively.

Output

A single floating point value that represents the length of side $$$B$$$.

ExampleInput
9 10
Output
4.358898943540674
Note

Make sure that you are finding the length of side $$$B$$$ and not $$$C$$$(the hypotenuse).

加入题单

算法标签: