poj 2288,dp:state[path][i][j]