Medium20 pts
Climbing the Leaderboard
Ranked leaderboard (desc). Alice's scores. For each score, output her rank. Ties share same rank.
Input
n\nranked[]\nm\nalice[]
Output
m lines: rank per alice score.
Sample
7 100 100 50 40 40 20 10 4 5 25 50 120
Expected
6 4 2 1
Loading editor…
Output
No output yet. Run your code to see results.