Currently in learning c # learning in a daze, want to find a topic to brush, 20, but no way, can give recommendation
Also feel good logical ability is poor, the following
Four people across the bridge and A need for A minute B two minutes C D
ten minutes in five minutesOnly a flashlight, a flashlight can cross the bridge, a bridge at most two, ask how can all four in 17 minutes past
Clearly, it is very simple, around a little, I must die in the above, how to make up for the
All only 50 property
CodePudding user response:
This is a clear mathematical problems, with a flashlight and a two indicating that there is a person have to take a flashlight to ferry others then you will find the other bridge time was 2 + 5 + 10=17
CodePudding user response:
reference 1st floor OrdinaryCoder response: this is a clear mathematical problems, with a flashlight and a two indicating that there is a person have to take a flashlight to ferry others then you will find the other bridge time was 2 + 5 + 10=17 You haven't thought about going to the pick people who with a flashlight back after. Truth: AB first (2 minutes), A back (1 minute), CD (10 minutes), with B back (2 minutes), AB together (2 minutes). A total of 17 minutes. CodePudding user response:
You this is algorithm problem, this is not necessarily to be familiar with algorithm, see the field Many high-level language encapsulates the basic algorithms, such as the sort (), this need not you learn various sorting algorithms, In deep water area, of course, is not, however, the reality can walk into the deep water area is not much CodePudding user response:
Hate this boring subject, itself logic subject himself is not clear, this topic is divided into two kinds of circumstances, in either case, must go first to be sure the fastest return to pick up the other, only A fastest, If A and B together, it is A compromise B, also become A 2 minutes to cross the river, or say A don't have to compromise, or after 1 minute walk (not afraid of the speed is not the same two people, one person out of the river, who take proper flashlight? Arguably slowly with appropriate, but double speed difference, not afraid of A walk too fast, less than A flashlight illumination, A fall in the river? ), if the mountain is slow speed of the finished, how should be more than 17 minutes, according to the meaning of this boring subject, should be don't indulge a slow speed, so the A and B together across the river=& gt; Two kinds of B after crossing the river, A time, just come back to C, A, C, across the river together=& gt; A back-and-forth 2 minutes back to D, but C to spend 5 minutes to cross the river, so at this time no over the river, only A, D wait, wait for 5 minutes A good river C, A, D and started off=& gt; After 10 minutes, A, D, crossed the river, A fast, across the river takes minutes included in the 1 D cross 10 minutes), so A total of 17 minutes, Make up one ball, CodePudding user response:
Flashlight slow men carried no, fast men carried as if also has the problem, there is the risk of fall river, ha ha, CodePudding user response:
refer to the second floor Ival response: Quote: refer to 1st floor OrdinaryCoder response: This is a clear mathematical problems, with a flashlight and a two indicating that there is a person have to take a flashlight to ferry others then you will find the other bridge time was 2 + 5 + 10=17 You haven't thought about going to the pick people who with a flashlight back after. Truth: AB first (2 minutes), A back (1 minute), CD together (10 minutes) and B (2 minutes), AB together (2 minutes). A total of 17 minutes. Want to sent CodePudding user response:
In the mathematics problems, primary title often see a "20 meters, there is a well a frog jump two meters, 1 meter, asked the frog to jump a few times can jump out of the well" CodePudding user response:
I don't feel very trouble, The somebody else just see your thinking process, As for the title itself is rigorous or not, is not particularly important, CodePudding user response:
is focused on the building to find a way to brush