Store the current rank of the student
x [ i ] [ 2 ] = i + 1 NEW_LINE highest = x [ 0 ] NEW_LINE for j in range ( 1 , n ) : NEW_LINE if ( x [ j ] [ 1 ] >= highest [ 1 ] ) : NEW_LINE INDENT highest = x [ j ] NEW_LINE DEDENT