Dynamic planning must be like this, but not like this. It is the key to quickly solving certain types of problems. Know yourself 7

Source: Internet
Author: User
Today, when I was in WC, I wanted to use my cell phone to see the real Internet,
When an error occurs, ucweb provides a small question. Then I thought about and found a small rule for solving such questions.

------------------------------------------------------------------------------
A small question:
If you ask a worker to work for you for seven days, the return is a gold bar, which is evenly divided into seven connected segments. You must give them at the end of each day.

Segment. If you are only allowed to break the gold bars twice, how do you pay your workers?

From the question, we can see that you have to give a piece to the workers on the first day. There is only one way to cut the question. Is to cut it into 1 and 6 segments.

. There is no other method. (This is required ).

Do you want to give two paragraphs to your worker the next day. At this time. There are only two ways to give it another 1 segment, or give it a 2 segment, put

Change the value of Segment 1. Simply put, if you give it another segment, it will become 1 1 5 and there will be no way to give it on the third day (it must not be like this)

You can only select the second solution.

Because the problem has been resolved, you do not need to verify the following to be OK.

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.