Students
Здравейте, ако може някой да ми покаже примерно решение на C#.
https://judge.softuni.bg/Contests/Practice/Index/1215#3
Write a program that receives a count of students - n and orders them by grade in descending order. Each student should have a First name (string), a Last name (string) and a grade (a floating-point number).
Input
- On the first line, you are going to receive n - the count of students
- On the next n lines, you will be receiving the info about the students in the following format:
"{first name} {second name} {grade}"
Output
- Print each student in the following format: "{first name} {second name}: {grade}"
Example
Input |
Output |
4 Lakia Eason 3.90 Prince Messing 5.49 Akiko Segers 4.85 Rocco Erben 6.00 |
Rocco Erben: 6.00 Prince Messing: 5.49 Akiko Segers: 4.85 Lakia Eason: 3.90 |
Благодаря !