TYVJ1061 Mobile SERVICE-DP-scrolling array __noip

Source: Internet
Author: User

Considering the cost and position of the employee, the location of the request is relevant, you can set the status F (i,x,y,z) to represent the completion of the first I request, the minimum cost of three employees now located in X,y,z, which can be easily pushed by I to i+1
(DP can be pushed from i-1 to I, or I can be pushed to i+1, flexible application can write a good equation)

The state transition equation is:
F (i+1,x,y,z) =min (f (i+1,qi+1,y,z), F (i,x,y,z) +c (x,qi+1)) f (i + 1, x, y, z) = m i n (f (i + 1, q i + 1, y, z), F (i, x, Y, z) + C (x, Q i + 1)) f (i+1,x,y,z) = min (f (i+1,q_{i+1},y,z), F (i,x,y,z) + C (x,q_{i+1}))
F (i+1,x,y,z) =min (f (i+1,x,qi+1,z), F (i,x,y,z) +c (y,qi+1)) f (i + 1, x, y, z) = m i n (f (i + 1, x, Q i + 1, z), F (i, x, Y, z) + C (Y, Q i + 1)) f (i+1,x,y,z) = min (f (i+1,x,q_{i+1},z), F (i,x,y,z) + C (y,q_{i+1}))

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.