-코드
n, k = map(int, input().split())
d, s = map(int, input().split())
r = ((n * d) - (k * s)) / (n - k)
if 0 > r or r > 100:
print("impossible")
else:
print(round(r, 6))
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬]9724번 Perfect Cube (0) | 2021.04.21 |
---|---|
[백준/파이썬]8714번 Monety (0) | 2021.04.21 |
[백준/파이썬]10695번 Dalia (0) | 2021.04.20 |
[백준/파이썬]6249번 TV Reports (0) | 2021.04.20 |
[백준/파이썬]10270번 Algebraic Teamwork (0) | 2021.04.20 |