Logo
(追記) (追記ここまで)

26592번 - Triangle Height 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB14251101105177.910%

문제

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:

  • a = (h*b)/2 (a – area, b – base length, h – height)

입력

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

제한

예제 입력 1

4
200.533 40.5
10.6 1.11
30 30
3333 50.7

예제 출력 1

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

힌트

출처

School > PLU High School Programming Contest > PLU 2020 > Advanced 11번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /