Baidu 2015 School recruit Pen test (scarf problem)

Source: Internet
Author: User
There were three white men who were captured by an Indian against the tribe. The chiefs of the tribe were willing to let them go, so he led them to a tent without light. He gave everyone a turban (he had 5 scarves, 3 white and 2 red, so 2 were useless). Then they lined up and went out. In this way, everyone can see the front of the person's turban color, but do not see the color of their own scarf (the first to go out of the look of no turban, the second can see the first person's turban, the third person can see the front two people's turban). If one of them speaks the color of his turban, then everyone can be released. After a few minutes of silence, one of them said: "The color of my turban is ... ”。 And then they were released. The question is, what did the first few people say? What color is the turban? () Attachment conditions: You can assume that all prisoners are smart enough, and that they have confidence in the wisdom of their companions. They will be imprisoned for the wrong time. All people add up to guess once everyone wants to be released. The options are as follows:
Third person: Red Third Person: White second person: Red first Person: white

Answer choice 4 (First person: white)

The reasons are as follows (personal view): The key point is "silence for a few minutes", only people say the color, which means that the first person and the second person can not be red (three white hats and two hats), so the front two people's hat color may be (red, white), (white, red), (white, white), Since the second one cannot tell the color of the hat he wears, it is only possible for the first person to be white

Summary of the topic: logical analysis, using the "Hypothesis exclusion method".

Baidu 2015 School recruit Pen test (scarf problem)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.