A monkey has 100 bananas on the side. It takes 50 meters to get home. Each time it can only move 50 bananas, it will eat one for every 1 meter walk, how many bananas can be moved to the house at most?

Source: Internet
Author: User

Set Y to the maximum number of remaining bananas, and X to the required vertex (x meters). The equation can be listed:

1. Y = (100-3x)-(50-x) = 50-2x, so the smaller the value of X, the larger the value of Y.

2. (100-3x) <= 50. The remaining number of bananas is less than or equal to 50. Otherwise, you cannot get the value. x> = 16 and 2/3. Therefore, x = 17.

Y = 16

It is easy to find y = 16

 

Popularity:

First, move 50 to 17 meters (a point), eat 17 and 33, and leave 16 at a point. Then, take 17 to the starting point. All the 17 are eaten, take the other 50 from the starting point to the point A, eat 17 and eat 33, plus 16 left at the point a, a total of 49, the remaining 50-17 = 33 meters to the end, 49. Eat 33 and 16.

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.