You are viewing a single comment's thread. Return to all comments →
noob coder
num_shoes = int(input()) shoe_sizes = list(map(int, input().split())) number_of_customers = int(input()) total = 0
for i in range(number_of_customers): size, amount= list(map(int, input().split()))
if size in shoe_sizes: total += amount shoe_sizes.remove(size)
print(total)
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 →
noob coder
num_shoes = int(input()) shoe_sizes = list(map(int, input().split())) number_of_customers = int(input()) total = 0
for i in range(number_of_customers): size, amount= list(map(int, input().split()))
print(total)