PROGRAMMING:Performance ranking
Define struct stu, write grade ranking function: void sort (struct stu * PS, int n), rank the struct array by grade.
The function of the program is to read in the integer n (n < 100), and then read in the student number (integer) and score (real number) of n students. Rank by sample output.
###Input format:
See example
###Output format:
The first column is the ranking, pay attention to the juxtaposition; The second column is the student number, and the third column is the grade (2 decimal places).
###Input example:
```in
five
101 99
102 100
103 50
104 80
105 99
```
###Output example:
```out
1 102 100.00
2 101 99.00
2 105 99.00
4 104 80.00
5 103 50.00
```
answer:If there is no answer, please comment
The function of the program is to read in the integer n (n < 100), and then read in the student number (integer) and score (real number) of n students. Rank by sample output.
###Input format:
See example
###Output format:
The first column is the ranking, pay attention to the juxtaposition; The second column is the student number, and the third column is the grade (2 decimal places).
###Input example:
```in
five
101 99
102 100
103 50
104 80
105 99
```
###Output example:
```out
1 102 100.00
2 101 99.00
2 105 99.00
4 104 80.00
5 103 50.00
```
answer:If there is no answer, please comment