摘要:
题目 "戳这里" 。 首先明确一点,数字最多往左走一次,走两次肯定是不可能的(因为只有$3$行)。 然后我们用$f_{i,j}$表示前$i$行,第$i$行状态为$j$的最优解。($j$表示从第一,二,三,行出来,或者是朝左走了)。 方程应该也好YY。 include include include 阅读全文
摘要:
Description Petya puts the $N$ white balls in a line and now he wants to paint some of them in black, so that at least two black balls could be found 阅读全文
摘要:
Description There are $M$ network interfaces in the wall of aisle of library. And $N$ computers next to the wall need to be connected to the network. 阅读全文