第31行不能这么写,改成这样应该就行 dp = [[0 for i in range(W+1)] for i in range(n+1)]
点赞 1

相关推荐

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