In mathematics you don't understand things, you just get used to them.

标签 data structures 下的文章

Prob. 1Desc. & Link.暴力为 $\Theta(NK)$。正解(也许):把每一个全为正整数的子段找出来。然后判断一下中间连接的情况即可。但是这样决策情况太多了。我们需要考虑贪心。...