跳到正文

wh__

544279

sweat more in normal days drills,bleed less in wartime combats

在洛谷打开
资料、奖项与版本

资料

编号
544279
抓取

奖项

2024 CSP-S
一等奖
2024 NOIP
三等奖
2023 CSP-S
二等奖
2023 NOIP
三等奖
2022 CSP-J
二等奖
2022 CSP-S
二等奖

## 你好,第位访客 helper 画图工具

LSOI2022 共同体成员 created by @\small_{_{\texttt{created by @}}}zymooll\small_{_{\texttt{zymooll}}}

          \ \ \ \ \ \ \ \ \ \              \ \ \ \ \ \ \ \ \ \ \ \ \              \ \ \ \ \ \ \ \ \ \ \ \ \              \ \ \ \ \ \ \ \ \ \ \ \ \

         \ \ \ \ \ \ \ \ \ zymooll#289296\colorbox{white}{\color{red}{zymooll}}_{\colorbox{white}{\color{grey}{\#289296}}}       \ \ \ \ \ \ wxh666#342494\colorbox{white}{\color{red}{wxh666}}_{\colorbox{white}{\color{grey}{\#342494}}}       \ \ \ \ \ \ Let_Fly#760859\colorbox{white}{\color{red}{Let\_Fly}}_{\colorbox{white}{\color{grey}{\#760859}}}       \ \ \ \ \ \ tjr0513#791331 \colorbox{white}{\color{red}{tjr0513}}_{\colorbox{white}{\color{grey}{\#791331 }}}

          \ \ \ \ \ \ \ \ \ \              \ \ \ \ \ \ \ \ \ \ \ \ \              \ \ \ \ \ \ \ \ \ \ \ \ \              \ \ \ \ \ \ \ \ \ \ \ \ \

         \ \ \ \ \ \ \ \ \ _RE_#315795\colorbox{white}{\color{green}{\_RE\_}}_{\colorbox{white}{\color{grey}{\#315795}}}       \ \ \ \ \ \ mori_#339311\colorbox{white}{\color{red}{mori\_}}_{\colorbox{white}{\color{grey}{\#339311}}}       \ \ \ \ \ \ _Regenbogen_#791638\colorbox{white}{\color{red}{\_Regenbogen\_}}_{\colorbox{white}{\color{grey}{\#791638}}}       \ \ \ \ \ \ Ayin#312767 \colorbox{white}{\color{red}{Ayin}}_{\colorbox{white}{\color{grey}{\#312767 }}}

          \ \ \ \ \ \ \ \ \ \              \ \ \ \ \ \ \ \ \ \ \ \ \              \ \ \ \ \ \ \ \ \ \ \ \ \       \ \ \ \ \ \ LSOI-Blog \huge\begin{matrix}\texttt{LSOI-Blog} \\ \ \end{matrix}

     \ \ \ \ \ LZMkingNB #411572\colorbox{white}{\color{red}{LZMkingNB }}_{\colorbox{white}{\color{grey}{\#411572}}}      \ \ \ \ \ Shie#793845\colorbox{white}{\color{red}{Shie}}_{\colorbox{white}{\color{grey}{\#793845}}}       \ \ \ \ \ \ wh__#544279\colorbox{white}{\color{green}{wh\_\_}}_{\colorbox{white}{\color{grey}{\#544279}}}          \ \ \ \ \ \ \ \ \ LSOI-Bloglsoi.top\colorbox{white}{\color{purple}{LSOI-Blog}}_{\colorbox{white}{\color{grey}{lsoi.top}}}

LSOI2023 共同体成员 created by @\small_{_{\texttt{created by @}}}707\small_{_{\texttt{707}}}

          \ \ \ \ \ \ \ \ \ \              \ \ \ \ \ \ \ \ \ \ \ \ \              \ \ \ \ \ \ \ \ \ \ \ \ \              \ \ \ \ \ \ \ \ \ \ \ \ \

         \ \ \ \ \ \ \ \ \ TanHaoren#415500\colorbox{white}{\color{brown}{TanHaoren}}_{\colorbox{white}{\color{grey}{\#415500}}}       \ \ \ \ \ \ T_TwY#241060\colorbox{white}{\color{red}{T\_TwY}}_{\colorbox{white}{\color{grey}{\#241060}}}       \ \ \ \ \ \ microchip#241838\colorbox{white}{\color{red}{microchip}}_{\colorbox{white}{\color{grey}{\#241838}}}       \ \ \ \ \ \ skkszd#1068853 \colorbox{white}{\color{red}{skkszd}}_{\colorbox{white}{\color{grey}{\#1068853 }}}

          \ \ \ \ \ \ \ \ \ \              \ \ \ \ \ \ \ \ \ \ \ \ \              \ \ \ \ \ \ \ \ \ \ \ \ \       \ \ \ \ \ \

         \ \ \ \ \ \ \ \ \ xztz08#1293742\colorbox{white}{\color{red}{xztz08}}_{\colorbox{white}{\color{grey}{\#1293742}}}       \ \ \ \ \ \ Alanxz#778902\colorbox{white}{\color{red}{Alanxz}}_{\colorbox{white}{\color{grey}{\#778902}}}       \ \ \ \ \ \ wh__#544279\colorbox{white}{\color{red}{wh\_\_}}_{\colorbox{white}{\color{grey}{\#544279}}}

LSBlogs \huge\begin{matrix}\texttt{LSBlogs} \\ \ \end{matrix}

共 2 篇
  1. 个人记录

    P1248加工生产调度(新颖贪心策略)

    该题讨论如何通过邻项交换策略优化序列排列。核心思路是:当比较两个元素i和j时,若选择i在j前的值优于j在i前,则满足min(A_i,B_j) ≤ min(A_j,B_i)。但此条件不具备传递性,无法直接使用常规排序。解决方法采用双指针技巧,初始设置l=1(A数组起始)、r=n(B数组起始),通过比较当前A和B的最小值,将指针指向对应数组并处理元素。证明表明:当A_i为当前最小值时,应优先放置在最前;当B_i为当前最小值时,应优先放置在最后。通过逐个处理当前最小元素,最终可得到最优排列顺序。此方法巧妙利用不等式关系,避免了直接排序的局限性。

    2 赞
  2. 题解

    题解:P10759 [BalticOI 2024] Jobs

    solution: 设 f[u] 为:若进入以 u 为根的子树有正收益 ( 负收益定为 inf ),在考虑完能尽可能获取收益的结点后,进入的最低以 u 为根的子树最低收益门槛。 当我们在从下往上跑出 f[u],遍历 u 子树时,设 now 为当前收益(不包括起点 0)。 1. 若…