经典指数          
POJ
原因
1084
浏览数
0
收藏数
 

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?输入描述 The first line of the input contains an integer N (1 In (N+2)-th line, you'll get an integer M (1输出描述 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.输入例子 3 Li Ming A B 2 49 Li Ming 49 A 48 B 80 A 85 B 83 Li Ming 输出例子 1 2

     举报   纠错  
 
切换
暂时还没有答案,欢迎分享你的解答 . . .
撰写答案
扫描后移动端查看本题