시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 1024 MB | 672 | 520 | 492 | 77.725% |
Your Math teacher asked you to write a program to help him generate homework solutions. The program will need to find the height of a triangle given its area and its base length.
Formula:
The first line will contain a single integer n that indicates the number of lines that follow. Each line will include the area and base length of a triangle with the two values separated by a single space.
area base
For each input display the height of the triangle with 2 decimal places, in the following format:
The height of the triangle is #.## units
4 200.533 40.5 10.6 1.11 30 30 3333 50.7
The height of the triangle is 9.90 units The height of the triangle is 19.10 units The height of the triangle is 2.00 units The height of the triangle is 131.48 units