You are viewing a single comment's thread. Return to all comments →
input() s = input() sizes = list(map(int, s.split())) customers = int(input()) totalMoneyEarned = 0 for i in range(customers): customer = input().split() size = int(customer[0]) price = int(customer[1]) if size in sizes: totalMoneyEarned += price sizes.remove(size) print(totalMoneyEarned)
Seems like cookies are disabled on this browser, please enable them to open this website
collections.Counter()
You are viewing a single comment's thread. Return to all comments →