Programmer, your logical thinking is more (a reasoning question test, you can't miss)

zhaozj2021-02-11  212

To be a programmer, logical thinking ability is the key, writing procedures is also a kind of exercise for this ability, there is a test question, you can evaluate your current capacity. I also hope that everyone will pay back the feelings.

This question is an examination question from the University of Berlin, requiring it within 30 minutes, but only less than 10% of people have completed the requirements. The score is like this, a total of 150 points, from 1 to 30 minutes, 1 minute per plus 1 minute, then an answer is 90 points, it is, it is more than 1 minute after 30 minutes. 1 minute. I used it for 22 minutes, and everyone will try it, see how many points you can.

Original title: There are five young sisters to be placed, all the ladies are different, wearing clothes color different, drink different drinks, nourish different pets, eat different fruits. Miss Qian wears red clothes; Miss Weng raised a dog; Miss Chen drunk tea; wearing green clothes standing on the left side of white clothes; lady in green clothes drinking coffee; eating watermelon birds; wearing yellow clothes Miss is eating a pear; standing in the middle of the middle of the milk; Miss Zhao stands at the left side; Miss I eat oranges stands next to the cat; the fish next to the fish; Miss Apple drinks champagne; Miss Jiang Eating bananas; Miss Zhao stands next to the lady wearing blue clothes; the lady drinking boiled water is standing next to the lady who eats oranges ;? Which lady is raising?

You can receive questions, look at three times, then start timing.

The answer is the answer below. In order for everyone to be unaffected, the answer in the quotation marks is all white, you choose this piece, you can see the answer.

In addition to declaration: Everyone must launch all the answers, and there is no equivalent part, so that they can be launched, be sure to do this. Of course, I am not a teacher, the standard is in your heart, whether it is cheating in your heart.

Complement 1: In fact, the key to this problem is how the best method is Xlili and Random methods, which is also the idea of ​​many people, but different people have different degrees. What I want to say is that there is no other way, I started to use the number of methods, and later I found very chaotic, but also the matrix method used above, I hope some people can have other methods, not necessarily the best method.

If you have finished the title, you are now recalling, see what you just think, you will understand that you think about the problem in most cases. My original intent is what you care about thinking about the problem? How do you think about the problem? After all, this question is just a question, and its true source is an Einstein, and it is very bad by everyone.

Biking 2: LONSH is relatively clarified, but relatively JC77 is still intuitive, Winion proposed solution is a more clear mathematical algorithm. I hope that HaoGege can tell his method, I am also very interested. I hope that everyone will do the article in the following three points, replies to this as well as the center (because everyone is talking to a lot): 1, establish a model 2, write the corresponding mathematical algorithm 3, program implementation method (what Language can be)

The answer is as follows (double)

转载请注明原文地址:https://www.9cbs.com/read-4378.html

New Post(0)