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.
fromcollectionsimportCounterif__name__=='__main__':total_joote,joote_ki_variety,total_grahak=(input(),Counter(map(int,input().split())),int(input()))galle_me_kitne_pese=0# Noto ki Barish for_inrange(total_grahak):joota_ek_number_bada_dikhao,noto_ki_to_barish_ho_rai_hai=map(int,input().split())ifjoote_ki_variety[joota_ek_number_bada_dikhao]:galle_me_kitne_pese+=noto_ki_to_barish_ho_rai_haijoote_ki_variety[joota_ek_number_bada_dikhao]-=1# Aaj Ki Kamaiprint(galle_me_kitne_pese)
Cookie support is required to access HackerRank
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 →
Samajh me aaye to "Copy That" XD