![]() | ||||
Online Judge | Problem Set | Authors | Online Contests | User |
---|---|---|---|---|
Web Board Home Page F.A.Qs Announcement | Current Contest Past Contests Scheduled Contests Award Contest |
Rank List Time Limit:10000MS Memory Limit:65536K Description Li Ming is a good student. He always asks the teacher about his rank in his class after every exam, which makes the teacher very tired. So the teacher gives him the scores of all the student in his class and asked him to get his rank by himself. However, he has so many classmates, and he canĄ¯t know his rank easily. So he tends to you for help, can you help him? Input
The first line of the input contains an integer N (1 <= N <= 10000), which represents the number of student in Li MingĄ¯s class. Then come N lines. Each line contains a name, which has no more than 30 letters. These names represent all the students in Li MingĄ¯s class and you can assume that the names are different from each other.
Output The output contains M lines. In the i-th line, you should give the rank of Li Ming after the i-th exam. The rank is decided by the total scores. If Li Ming has the same score with others, he will always in front of others in the rank list. Sample Input
Sample Output
Source POJ Monthly,Li Haoyuan |
[Submit] [Go Back] [Status] [Discuss]
All Copyright Reserved 2003
Any problem, Please Contact Administrator