17 views3 pages

Document Summary

A counter is a container that stores elements as dictionary keys, and their counts are stored as dictionary values. Counter({2: 4, 3: 4, 1: 3, 4: 2, 5: 1}) He has a list containing the size of each shoe he has in his shop. There are n number of customers who are willing to pay xi amount of money only if they get the shoe of their desired size. Your task is to compute how much money raghu earned. The first line contains x, the number of shoes. The second line contains the space separated list of all the shoe sizes in the shop. The third line contains n, the number of customers. The next n lines contain the space separated values of the shoe size desired by the customer and xi, the price of the shoe. Print the amount of money earned by raghu.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents