「codechef - STRQUER」Strange Queries
link。首先对原序列排序,考虑静态序列做法为:设 $f(n,k\in\{0,1\})$ 为对于前 $n$ 个数,第 $n$ 个数否 / 是已经决策完毕的最优方案,转移即$$
\begin{ca...
In mathematics you don't understand things, you just get used to them.
In mathematics you don't understand things, you just get used to them.