We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
collections.Counter()
collections.Counter()
Sort by
recency
|
1412 Discussions
|
Please Login in order to post a comment
from collections import Counter
number_of_shoes = int(input()) sizes_of_shoes = list(map(int,input().split())) number_of_customer = int(input())
sizes = Counter(sizes_of_shoes)
money = 0
for _ in range(number_of_customer): size , price = map(int,input().split())
print(money)
Here is the most optimised and cleaner code (without constraint) for this problem:-
`
Why all test cases are not getting passed, can anyone shed some light on my mistake.