Monkey Eat Banana Puzzle

Source: Internet
Author: User
The Elephant eats the banana (the monkey moves the banana) the question
Problem:


said that there is an elephant, each walk a meter to eat a banana, or move around. Then the elephant will go from a to B, the distance between is 1000 meters. Starting with 2000 bananas, elephants can travel with up to 1000 bananas. The maximum number of bananas the elephant can transport to the end. How to transport. Why this is the most.





Reply:


Answer one:


Start the elephant walk a meter, with 1000 bananas, and then return, and then with 1000 bananas in the past, the process consumes 3 bananas, to 1 meters of the remaining 1997, so and so on, each walk a meter consumption 3, to 333 meters, the remaining 1001, discarded A, the elephant will not have to return to the 2nd time, straight to the end, The remaining 333 branches.


(the first 333 meters in order to carry all the bananas, each rice needs to consume 3 bananas, to 333 meters left only 1001, lost once only to carry a trip, the elephant directly with 1000 bananas on the road, do not have to daoteng back and forth. At this time consumes 1 per metre. )





Answer two:


At a time greater than 1000 bananas. Elephants need to be transported back and forth. We have an elephant that needs to go back and forth to transport bananas for x meters. So elephants need to eat 3X of bananas in this X-meter shipment. 3X should be close to 1000. So:


1, 3x=1002 only, arrive x=334 meter. That's 334 meters to eat 1002 bananas. There are only 998 left. The remaining 1000-334 meters = 666 meters and then eat 666 bananas. Then 998-666 = 332 only. That's 332 bananas left;


2, 3x=999 only, arrive x=333 meter. That's 333 meters to eat 999 bananas. There are only 1001 left, throw away 1. The remaining 1000-333 meters = 667 meters and then eat 667 bananas. Then 1001-1-667=333 only. That's 333 bananas left.


Compare the answers above: transport up to 333 bananas to reach their destination.


(1000 means to eat these bananas, the rest of the only one to move forward on the line.) The first time you move, if you move 1 meters. So eat 1, come back and eat one. Move another pile and eat one more. So that's 3 of them. And so on Of course there is a kind of the answer is slightly different from this one if you move it first. )





1000 refers to eating these bananas, the rest of the only one move forward on the line. The first time you move, if you move 1 meters. So eat 1, come back and eat one. Move another pile and eat one more. So that's 3 of them. And so on Of course there is a kind of the answer is slightly different from this one if you move it first.

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.