It finally qualified! OK, here's the solution, with an explanation.
This isn't really a riddle, it's a test of lateral thinking. And it's a lot harder than it looks - very few people are able to work it out from first principles, but once you know the answer it's obvious!
The key to solving it is the time taken by each man. That's obvious, what isn't so obvious is how to fit the times together. Most people start by assuming that the most important thing is minimising the time spent bringing the flashlight back cross the bridge, as this is effectively wasted time. So they start by sending man D (the quickest) across with A, then coming back and taking B and C, in turn. This minimises the "return time" to 2 minutes, allowing the maximum possible for the others to cross. But the total "crossing time" adds up to 17 minutes (10 minutes for A+D, 5 minutes for B+D and 2 minutes for C+D), and the 2 minutes return time makes a total of 19 minutes, which is too long!
To find the solution, you need to look at it from a different angle. And the real key is not the return time, it's the crossing time.
Take a look at those times again. A takes 10 minutes, and B takes 5 minutes. If they go across separately, that's 15 minutes for the two of them. But if you send them across together, it only takes 10 minutes. However, you obviously can't have one of them come back again, as that would waste far too much time. This means that they can't be the first to go across (as if they did, one of them would have to bring the flashlight back), and they can't be the last to cross (as there's no way for them to get the flashlight in order to do so). So they have to be the second (middle) pair to cross.
Now that I've given you the necessary clues, most of you should have worked it out by now. But here's the solution in full, complete with the timings, for those that still don't believe it can be done in 17 minutes:
- The starting positions are like this:
ABCD ¸,ø¤º°`°º¤ø,¸
(that's the bridge, by the way!)
- D and C cross the bridge together.
Time taken: 2 minutes. Total time so far: 2 minutes.
Positions after this step: AB ¸,ø¤º°`°º¤ø,¸ DC
- D returns with the flashlight.
Time taken: 1 minute. Total time so far: 3 minutes.
Positions after this step: ABD ¸,ø¤º°`°º¤ø,¸ C
- A and B cross the bridge together.
Time taken: 10 minutes. Total time so far: 13 minutes.
Positions after this step: D ¸,ø¤º°`°º¤ø,¸ ABC
- C returns with the flashlight.
Time taken: 2 minutes. Total time so far: 15 minutes.
Positions after this step: DC ¸,ø¤º°`°º¤ø,¸ AB
- D and C cross the bridge together.
Time taken: 2 minutes. Total time so far: 17 minutes.
Positions after this step: ¸,ø¤º°`°º¤ø,¸ ABCD
There you are! It's easy when you know how