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”, 2, 4), (“p2”, 5, 3), …]
(You may replace this representation with something else if you want.)

Copyright By PowCoder代写 加微信 powcoder

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

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

############################
# write your solution here #
############################

# output total fit

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