1005 一本通 Python

x,a,y,b=map(int,input().split())
d=x*a
cv=y*b
ss=(cv-d)/(b-a)
ff=d-a*ss
print("%.2f"%(ss))

你可能感兴趣的:(python)