Score
InterviewTime limit5sMemory limit1024 MB
Given n exam scores, output each student's rank in input order, where ties share the same rank.
- Level
Easy3 of 10
- Topics
- Sorting, Array, Implementation
- Solved
- No attempts yet
Problem
An entrance examination was recently held in the Department of Informatics at JOI University. The exam is out of 100 points, and students took it. To decide the minimum passing score, JOI University decided to rank each student based on the exam results.
Given the scores of students, write a program that finds each student's rank. Note that multiple students may have the same score.
Input
The first line of the input contains the number of students (). The following lines give the students' scores. The -th line () contains the score () of the student with examinee number .
Output
Output to standard output. The output consists of lines. On the -th line (), output the rank of the student with examinee number .