단순 수학 문제이다. 각각 비율에 맞게 출력해주면 된다.
import math as m
n, a, b = map(int, input().split())
q = m.sqrt(n**2 / (a**2 + b**2))
print(int(q*a), int(q*b))
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 1330번 두 수 비교하기(python) (0) | 2020.01.26 |
---|---|
백준 알고리즘 1316번 그룹 단어 체커(python) (0) | 2020.01.26 |
백준 알고리즘 1193번 분수찾기(python) (0) | 2020.01.26 |
백준 알고리즘 1181번 단어 정렬(python) (0) | 2020.01.26 |
백준 알고리즘 1157번 단어 공부(python) (0) | 2020.01.25 |