5717脑筋急转弯困难brainteaserlong
Ferrying Guards and Prisoners
题目
Three guards and three prisoners must cross a river using a single boat that holds at most two people and cannot cross empty (someone must row it). At no time and on neither bank may prisoners outnumber the guards present there (if guards are present); if no guard is on a bank, any number of prisoners there is fine. Everyone can row. What is the minimum number of one-way boat trips needed to move all six across safely?
解题计时
0:00
提交作答时记录,用于后续平均用时统计。
你的答案