

Hãy luôn nhớ cảm ơn và vote 5*
nếu câu trả lời hữu ích nhé!
Ta có: `t` là thời gian 2 ô tô gặp nhau kể từ lúc xuất phát.
`d=v1*t+v2*t`
`=> t=d/(v1+v2)`
$\\$
$\texttt{Python}$
def mtime(d, v1, v2):
return d / (v1 + v2)
d = float(input())
v1 = float(input())
v2 = float(input())
print(round(mtime(d,v1,v2),1))
Hãy giúp mọi người biết câu trả lời này thế nào?
Code:
def mtime(d, v1, v2):
return round(d / (v1 + v2), 1)
d = float(input())
v1 = float(input())
v2 = float(input())
print(mtime(d, v1, v2))
Hãy giúp mọi người biết câu trả lời này thế nào?
Bảng tin
1289
318
1746
https://hoidap247.com/cau-hoi/6068069