CS代考 def read_sequence(i):

def read_sequence(i):
“””This helper function reads i lines as i products or boxes
They are returned as a list of tuples like [(“p1”, 5), (“p2”, 2), …]
(You may replace this representation with something else if you want.)

Copyright By PowCoder代写 加微信 powcoder

sequence = []
for _ in range(i):
name, x = input().split()
sequence.append((name, int(x)))
return sequence

n = int(input()) # note that n=m
products = read_sequence(n)
boxes = read_sequence(n)

#################################
# implement your algorithm here #
#################################

# print total fit

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com