N, m = input().split() N, m = int(N), int(m) goods = [] class Goods: def __init__(self): self.price = int self.value = int self.q = int goods = [] for _ in range(0, m): goods.append(Goods()) #负载价值表 w = [[0]*4 for i in range(0,m)] v = [[0]*4 for i in range(0,m)] for ...