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
|
1313 Discussions
|
Please Login in order to post a comment
X=int(input("Enter the number of shoes: ")) S=[int(sz) for sz in input("Enter the available sized separated by space: ").split()] N=int(input("Enter the number of customers: ")) p={} mny=0 for i in range(N): k=input("Enter size and price separated by space: ").split() a, b = int(k[0]), int(k[1]) if a in S: mny+=b S.remove(a)
print(mny)
It is working in my IDE but when I try to submit it says wrong answer. When I submit the same test input as a custom input it works. I feel like there is a bug or something. What do you think guys?