想问一下这个dp = [[0]*(total+1) for _ in range(m+1)],初始化dp为什么是m+1呀,不应该是m吗,我就错这里,一直没懂
点赞

相关推荐

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