Achievement ranking (20)_qq_32300341’s blog

1004. Ranking (20) time limit 400ms memory limit 65536 kB code length limit 8000B Judgment procedure Standard author CHEN, Yue Read the names, student numbers, and grades of n students, and output the names of the students with the highest grades and the lowest grades respectively and student number. Input format: Each test input contains 1 test case in the format of Line 1: positive integer n Line 2: the first student’s name, student number, grade Line 3: The name of the second student Student ID Grade … … … Row n+1: the nth student’s name, student ID, grade The name and student number are strings of no more than 10 characters, and the grade is an integer between 0 and 100. Here, it is guaranteed that no two students have the same grade in a set of test cases. Output format: Output 2 lines for each test case, the first line is The name and student ID of the student with the highest grade, the second line is the name and student ID of the student with the lowest grade, with 1 space between the strings. Sample input: 3 Joe Math990112 89 Mike CS991301 100 Mary EE990830 95 Sample…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索