求next数组(暴力版本)
Next[0] = -1
Next[1] = 0
For i = 2...P.len
Next[i] = 0;
For j = i - 1...1
If P[1...j] == P[i - j + 1...i]//P[1.
Next[0] = -1
Next[1] = 0
For i = 2...P.len
Next[i] = 0;
For j = i - 1...1
If P[1...j] == P[i - j + 1...i]//P[1.