PS/Baekjoon Online Judge
[백준 26592] Triangle Height [Python]
kimyoungrok
2023. 5. 27. 18:01
728x90
풀이
삼각형의 넓이(a)와 밑변의 길이(b)가 주어질 때 높이(h)를 구하면 되는 문제이다.
소수점 이하 2자리 까지만 출력해주자.
소스코드
출처
26592번: Triangle 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
www.acmicpc.net
728x90