90分求助

P2890 [USACO07OPEN] Cheapest Palindrome G

stO twx
by Le_temps_des_fleurs @ 2019-07-22 13:10:55


你初始化时$f[i][i-1]$也要初始化为0,否则当$len$=$2$且$s[i]$=$s[j]$时,$f[i+1][j-1]$就是无穷大,而不是$0$
by yzy_rick @ 2021-05-22 09:54:43


%%%感谢巨佬
by RAIH @ 2021-11-03 21:42:45


|