第三题应该是状态压缩动态规划,我距离函数没调好才过40%... dp[j][state]=min{ state二进制下第i位为1 |dp[i][state^(1<<j)]}
点赞 3

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务