回溯复杂度2^n,可以看看我n^2的dp做法哦
https://www.luogu.com.cn/paste/5cgfn3o5