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
'PS > Baekjoon Online Judge' 카테고리의 다른 글
[백준 26561] Population [Python] (0) | 2023.05.29 |
---|---|
[백준 26566] Pizza [Python] (0) | 2023.05.28 |
[백준 17408] 수열과 쿼리 24 [C++] (1) | 2023.05.26 |
[백준 28074] 모비스 [Python] (0) | 2023.05.25 |
[백준 28097] 모범생 포닉스 [Python] (0) | 2023.05.23 |