Two dogs, Ranga and Banga, are running randomly following two different paths. They both run for T seconds with different speeds. Ranga runs with a constant speed of R m/s, whereas Banga runs with a constant speed of S m/s. Both the dogs start and stop at the same time. Let D ( t ) be the distance between the two dogs at time t . The dog distance is equal to the difference between the max- imum and the minimum distance between the two dogs in their whole journey. Mathematically, Dog Distance = f max( D ( a )) 0 a T g
如果两条狗都跑直线的话,只需要把其中一个看成不动的参考系,这样问题就变成了点到线段的距离。 拐弯也不要紧,从当前状态到某一条狗拐弯之前的一段时间还是可以用上面的方法操作,重复
新闻热点
疑难解答