【Quant绿皮书】Q2 Tiger and sheep
One hundred tigers and one sheep are put on a magic island that only has grass. Tigers can eat grass, but they would rather eat sheep. Assume: A. Each time only one tiger can eat one sheep, and that tiger itself will become a sheep after it eats the sheep. B. All tigers are smart and perfectly rational and they want to survive. So will the sheep be eaten?
一百只老虎和一只绵羊被安置在一个只有草的神奇岛屿上。老虎能够吃草,但它们更愿意吃绵羊。假设:A. 每次只有一只老虎能够吃一只绵羊,并且这只老虎在吃完绵羊后会变成绵羊。B. 所有的老虎都很聪明且完全理性,它们都想要生存。那么绵羊会被吃掉吗?
题目:老虎和羊
类别:脑筋急转弯
思路:
简单的递推问题,
1、一只老虎时:吃,因为它变成羊是安全的
2、两只老虎时:不吃,因为吃的老虎会变成羊遭到另一只老虎吃(也就是变成1的局面)
3、三只老虎时:吃,因为吃了等同变为2的局面,2的局面是不吃,变成羊的老虎是安全的
4、四只老虎时:不吃,...

浙公网安备 33010602011771号