If two students have same grades your have to sort them by ID | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

If two students have same grades your have to sort them by ID

First line contains n(0 < n < 1001). Then n lines inputed in given format: First number - student's ID Second number - the final grade of the student Output: n lines sorted by grades(Note:If two students have same grades your have to sort them by ID) INPUT OUTPUT 3 25 90.1 20 80 30 90.1 30 90.1 20 80 25 90.1 https://code.sololearn.com/cFn6vpr72TeA/#cpp

29th Oct 2020, 5:32 AM
Azat Malgazhdar
Azat Malgazhdar - avatar
0 Answers