C程序-——Crossing River

时间:2018-10-12 09:59:13
【文件属性】:
文件名称:C程序-——Crossing River
文件大小:865B
文件格式:CPP
更新时间:2018-10-12 09:59:13
Crossing River A group of N people wishes to go across a river with only one boat, which can at most carry two persons. Therefore some sort of shuttle arrangement must be arranged in order to row the boat back and forth so that all people may cross. Each person has a different rowing speed; the speed of a couple is determined by the speed of the slower one. Your job is to determine a strategy that minimizes the time for these people to get across.

网友评论