【ACM题】一道ACM题,我只要想知道在数学上如何求解。
我不会做这道题,所以打不出编程的程序。不需要会写代码,只要告诉我数学上如何分析解决就行了。请各位详细讲下这道题的解决办法,万分感谢!!Turnthecorner:Mr.W...
我不会做这道题,所以打不出编程的程序。
不需要会写代码,只要告诉我数学上如何分析解决就行了。
请各位详细讲下这道题的解决办法,万分感谢!!
Turn the corner:
Mr. West bought a new car! So he is travelling around the city.
One day he comes to a vertical corner. The street he is currently in has a width x, the street he wants to turn to has a width y. The car has a length l and a width d.
Can Mr. West go across the corner?
Input
four real numbers, x, y, l and w.
Output
If he can go across the corner, print "yes". Print "no" otherwise.
Sample Input
10 6 13.5 4
10 6 14.5 4
Sample Output
yes
no 展开
不需要会写代码,只要告诉我数学上如何分析解决就行了。
请各位详细讲下这道题的解决办法,万分感谢!!
Turn the corner:
Mr. West bought a new car! So he is travelling around the city.
One day he comes to a vertical corner. The street he is currently in has a width x, the street he wants to turn to has a width y. The car has a length l and a width d.
Can Mr. West go across the corner?
Input
four real numbers, x, y, l and w.
Output
If he can go across the corner, print "yes". Print "no" otherwise.
Sample Input
10 6 13.5 4
10 6 14.5 4
Sample Output
yes
no 展开
展开全部
求高人解答
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询