|
|||
Super Stars of the MajorsWrite a program that writes to the standard output the data of the three best-performing students of a particular major or all of them if there are at most three students in the given major. The data of the students should be presented in the standard output in descending order of their study average. Students having the same study average should be listed in lexicographical order of their Neptun IDs. The study averages should be displayed with one decimal precision. The data to be processed must be read from the standard input. The first line of the input contains an acronym of a major made up of at most 10 characters. An additional up to 1000 lines of the input are of the following format: surname first_name neptun_id major study_average The surname and first_name are strings of up to 30 characters in length, the neptun_id is exactly 6 characters long, the major is an acronym of up to 10 characters, and the study_average is a real number. None of the strings contain space characters. Sample Input
Output for Sample Input
Acknowledgement
This work was supported by the construction EFOP-3.4.3-16-2016-00021. The project was supported by the European Union, co-financed by the European Social Fund.
|
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |