九度-1324-The Best Rank[基础排序题] | Acm之家
- To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C �C C Programming Language, M �C Mathematics (Calculus or Linear Algrbra), and E �C English. At the mean time, we encourage students by emphasizing on their best ranks ― that is, among the four ranks with respect to the three courses and the average grade, we print the best rank for each student.For example, The grades of C, M, E and A �C Average of 4 students are given as the following:
StudentID C M E A 310101 98 85 88 90 310102 70 95 88 84 310103 82 87 94 88 310104 91 91 91 91
Then the best ranks for all the students are No.1 since the 1st one has done the best in C Programming Language, while the 2nd one in Mathematics, the 3rd one in English, and the last one in average.
Read full article from 九度-1324-The Best Rank[基础排序题] | Acm之家
No comments:
Post a Comment