跳到正文

个人记录

0119

nytyq约 6 分钟
原文

这是 2026年1月19日 存档的第 1 版,不是当前版本。查看当前版本

文章信息与版本

文章信息

发布
2026年1月19日
收录
2026年1月19日
更新
2026年11月13日
篇幅
约 6 分钟
获赞
1

版本

  1. v2当前
  2. v1

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 x≥4×7−4−7+1 x\ge 4\times 7-4-7+1 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 fif_i means that the current ii 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 j<i−17j < i-17, 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 fx,jf_{x,j} representing xx There are jj robots left inside in the subtree of the root node, case 1, return after walking the subtree, i.e. fx,j=fx,j+fy,0+2×wf_{x,j}=f_{x,j}+f_{y,0}+2\times w, Noting why we are shifting ourselves, because there is usually a child order when backpacking in a tree, then we consider optimizing on fx,son,jf_{x,son,j}, and after the optimization is completed, sonson is pressed off by one dimension, but the update must be reversed. Case 2, fx,j=min⁡1≤k≤jfx,j−k+fy,k+k×wf_{x,j}=\min _{1 \le k \le j}f_{x,j-k}+f_{y,k}+k \times w, 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 ∑pi∑si≥mid\frac{\sum p_i}{\sum s_i} \ge mid if and only if ∑pi≥mid×∑si\sum p_i \ge mid \times \sum s_i, obvious ∑pi−mid×si≥0\sum {p_i-mid \times s_i} \ge 0. Then I found that selecting kk 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 O(n2m)\mathcal{O}(n^2m) tree dp, and then can only be transferred through sizsiz with dfndfn subtree tricks.

[D] (http://oi.nks.edu.cn:19360/zh/Problem/Details?cid=3440&tid=D) This is even more heavyweight, ~~ consider n≤100n \le 100, think of the range dp~~, because you need to run back and forth, then compare with Lao Zhang’s street lamp, then fi,j,0/1f_{i,j,0/1} means that the current [i,j][i,j] 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 i,ji, j goes, it is equivalent to the sum of the cost of the point after the symmetry of the diagonal line of i+j=n+1i+j=n+1 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 fn,m,kf_{n,m,k} to indicate that the current is in the present