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.
Here is my Python 3 solution using the bisect library.
frombisectimportbisect_rightn=int(input())scores=sorted(set(map(int,input().split())))m=int(input())alice=map(int,input().split())# your code goes hereforiinalice:print(len(scores)-bisect_right(scores,i)+1)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Climbing the Leaderboard
You are viewing a single comment's thread. Return to all comments →
Here is my Python 3 solution using the bisect library.