Create poj 1699 Best Sequence

kmp DP  http://blog.csdn.net/iyundi/article/details/12259437