Coal Transportation by train

Source: Internet
Author: User

One researcher in the group posted the following question:

At on the number axis, you have a coal mine with 3000 tons of coal. There is a market at 1000 km. You have a small train with a maximum carrying capacity of 1000 tons, each kilometer the train itself needs to burn 1 ton of coal, and the train can unload or load at any location, asking you how many tons of coal can be transported to the market at most ....

This question is not very difficult. When I was in the third year of high school, I was able to solve this question. Next I will analyze the problem:

First, we loaded 1000 tons of coal to the train, ran it to the X1, unloaded-2-1 tons of coal, and then carried the remaining X1 tons of coal back to the starting point, then pull the remaining 1000 tons of coal, continue to run to X1, and put down 1000-2-1 tons of coal, and then return, pull the remaining tons of coal. Note that this time you do not need to go back to the origin, therefore, only need to spend a X1 can, So 3000 tons of coal pulled to the X1 point, the remaining 3000-5 (x1-0) tons of coal, the remaining coal pulled to the X2 point, the above analysis, the required coal is 5 * (x2-x1), there is a starting point here, that is, at a certain point K, there is 1000 tons of coal left, at this time, we can only pull all the way to the market.

So there are:

3000-5*(x1-0)-5*(x2-X1)-...-5 (XK-XK-1) = 1000

We can obtain XK = 400

The total length is 1000 kilometers, so the coal that can be pulled at most is 1000-400 = 600 tons.

This topic is very interesting, that is, the N points before K points. Unloading and loading at any point does not matter. The only thing that needs to be done is to pull enough coal.

(I'm not sure whether the problem is solved correctly. Please correct it ).

NetizensXrayIt is pointed out that there are still 400 kilometers of roads after 600 kilometers, So 600 tons of coal is consumed, and the rest is400 tons of coal.

(I have analyzed all the complicated ones above, so I can't simply analyze them,Good luck!)

Some errors occurred in later analysis.Yan ShaNote: When pulling 3000 tons, you must load it three times before it can be loaded, so there is a problem of two times back and forth, but by the time it reaches 2000 tons, you only need to load it twice, so you only need to perform one round-trip operation. Therefore, the solution is as follows:

3000-5*(x1-0)-5*(x2-X1)-...-5 (XK-XK-1) = 2000

2000-3 * (XK + 1000 K)-3 * (XK + 2-xk)-...-3 (XM-xm-1) =

XK = 200, XM = 1000/3

The remaining coal is:

1000-(1000-200-1000/3) = 1600/3 tons of coal.

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.