What does it mean?
[A] (http://oi.nks.edu.cn:19360/zh/Problem/Details?cid=3440&tid=A) Consider what numbers must be made up, since can be made up, referring to Xiao Kai’s doubts, then play all the numbers that can be made up within table 17, and then means that the current mining point is reached, and then the maximum value is obtained, Since you need to look for the first 17 numbers and consider whether you can transfer them, you only need to transfer them if you meet the subscript of , and then record the maximum value of the prefix.
[B] (http://oi.nks.edu.cn:19360/zh/Problem/Details?cid=3440&tid=B) A tree dp, there is representing There are robots left inside in the subtree of the root node, case 1, return after walking the subtree, i.e. , Noting why we are shifting ourselves, because there is usually a child order when backpacking in a tree, then we consider optimizing on , and after the optimization is completed, is pressed off by one dimension, but the update must be reversed. Case 2, , and done.
[C] (http://oi.nks.edu.cn:19360/zh/Problem/Details?cid=3440&tid=C) Score planning, not finished with ironing. Fraction planning thinks of dichotomies, with if and only if , obvious . Then I found that selecting individuals, as well as dependencies, the tree dp set was done, but the old age of this problem NKOJ will get stuck with the direct tree dp, and then can only be transferred through with subtree tricks.
[D] (http://oi.nks.edu.cn:19360/zh/Problem/Details?cid=3440&tid=D) This is even more heavyweight, ~~ consider , think of the range dp~~, because you need to run back and forth, then compare with Lao Zhang’s street lamp, then means that the current section of the number, stay at the left end or the right end, Note that some points can be chosen not to be sent, and then it is said that the cost is calculated in advance, because choosing to send a customer will contribute time to all the customers who will be sent later.
[E] (http://oi.nks.edu.cn:19360/zh/Problem/Details?cid=3440&tid=E) Considering that each step taken is equivalent to the corresponding point in the case of symmetry, that is, after goes, it is equivalent to the sum of the cost of the point after the symmetry of the diagonal line of and the current point.
[F] (http://oi.nks.edu.cn:19360/zh/Problem/Details?cid=3440&tid=F) This question must dig a hole, ~~ because I didn’t understand it in class~~, consider to indicate that the current is in the present