#32: Collection.Counter( ) | | Hacker Rank Python Solution | English Explanation

preview_player
Показать описание
All the videos of python hackerrank series are available on channel
#collectioncounterhackerranksolution #collectioncounterhackerranksolution #python #hackerranksolution #hackerrankpythonsolution
#Python #Hackerrank
Рекомендации по теме
Комментарии
Автор

money = 0
x=int(input())
shoe_size = list (map(int, input().split(" ")))
number_of_customer = int(input())
for i in range(number_of_customer):
size, prize = map(int, input().split())
if size in shoe_size:
money = money+prize
shoe_size.remove(size)

print(money)

immoshu