There are 50 people in a small village and everyone has a dog. Of those 50 dogs, one or more have diseases that are not epidemical. The villagers decided to find out and kill the dogs with diseases. Everyone has to observe the other 49 dogs and reason wheather the diseased dog belongs to him. He should kill his dog after knowing that his dog is the diseased one. Neither of them can exchange information nor kill other people's dogs. During the first two days, no one kills his dog. Until the third day, several dogs are killed. The question is how many dogs have got the disease? 这是一道IBM招聘试题,难度挺大,大家看看有没有思路.
[此贴子已经被作者于2006-9-4 23:31:44编辑过] |