|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|1 초||512 MB||5||1||1||100.000%|
After the 2018 South Pacific Divisionals, twelve teams advance to the South Pacific Regionals (you are one of those 12 teams! Congratulations!). Each team competing in the Divisionals is part of either the Central, Eastern or Western division. The teams are ranked from lowest to highest (lower is better). The 12 teams are selected in two selection steps:
Which teams are selected to advance to the Regionals?
The first line of input contains a single integer n (12 ≤ n ≤ 100), which is the number of teams that competed in the Divisionals.
The next n lines describe the teams (from lowest ranked first to highest ranked last). Each of these lines contains three strings which are the name, division, and university of a team, respectively. Each of these strings contains only lowercase and uppercase letters and consists of at least 1 and at most 100 characters. The division is one of Central, Eastern or Western.
It is guaranteed that it is possible to select the 12 teams given the above selection steps. All universities have distinct names and each university belongs to exactly one division. All teams have distinct names.
Display the twelve teams that are selected, sorted from lowest to highest ranking.
14 TeamA Eastern UniversityA TeamB Central UniversityB TeamC Western UniversityC TeamD Central UniversityB TeamE Western UniversityD TeamF Eastern UniversityE TeamG Western UniversityC TeamH Central UniversityF TeamI Central UniversityG TeamJ Eastern UniversityH TeamK Western UniversityI TeamL Western UniversityC TeamM Eastern UniversityH TeamN Eastern UniversityA
TeamA TeamB TeamC TeamD TeamE TeamF TeamG TeamH TeamI TeamJ TeamK TeamM
20 FJCVTZS Central TheUniversityofNewSouthWales Ooneonn Western UniversityofMelbourne MessyUniversity Eastern TheUniversityofAuckland WhereIsAnand Western UniversityofMelbourne MaxWard Western TheUniversityofWesternAustralia stinkypete Western TheUniversityofAdelaide excuseme Central TheUniversityofSydney numonash Western MonashUniversity Semicolon Central UniversityofWollongong CodeBenders Central UniversityofTechnologySydney CSEplusplus Central TheUniversityofNewSouthWales averageatbest Central TheUniversityofNewSouthWales maeth Central TheUniversityofNewSouthWales TensorMellow Western TheUniversityofAdelaide coolbeans Central TheUniversityofSydney ThreeHeadsNoIQ Central TheUniversityofNewSouthWales MonteCarloMethodists Eastern MasseyUniversity YouSee Eastern UniversityofCanterbury sublimatetk Central TheUniversityofNewSouthWales Delta Western MonashUniversity
FJCVTZS Ooneonn MessyUniversity WhereIsAnand MaxWard stinkypete excuseme numonash Semicolon CodeBenders CSEplusplus MonteCarloMethodists