You are viewing a single comment's thread. Return to all comments →
How about this one?
number_shoes = int(input()) shoe_size = list(map(int,input().split(" "))) number_customers = int(input()) total_sold_value = 0 for _ in range(number_customers): customer_purchase = list(map(int,input().split(" "))) if customer_purchase[0] in shoe_size: total_sold_value += customer_purchase[1] shoe_size.remove(customer_purchase[0]) print(total_sold_value)
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 →
How about this one?