백준 2022번 : 사다리
링크 : https://www.acmicpc.net/problem/2022 2022번: 사다리 첫째 줄에 차례대로 x, y, c에 해당하는 양의 실수 세 개가 입력된다. 수는 소수점 여섯째 자리까지 주어질 수 있으며, 3,000,000,000보다 작거나 같다. www.acmicpc.net import sys input = sys.stdin.readline import math def get_height(x, y, w): h1 = math.sqrt(x**2-w**2) h2 = math.sqrt(y**2-w**2) h = h1*h2/(h1+h2) return h x, y, c = map(float, input().split()) w_s = 0 w_e = min(x, y) dif = 1 res_w = 0 wh..
2022. 2. 12.