← Back to List

21339번: Contest Struggles ↗

Solutions

Python 3
163 B | 163 chars
n, k = map(int, input().split())
d, s = map(int, input().split())

ans = (n * d - s * k)

print("impossible" if ans > 100 * (n - k) or ans < 0 else ans / (n - k))