#2015. C++-结构体-通过结构体定义student并把进行排序(从大到小)且打印出来

C++-结构体-通过结构体定义student并把进行排序(从大到小)且打印出来

Background

Description

通过结构体定义student并把进行排序(从大到小)且打印出来。 name:姓名(字符数组) age:年龄(整数) score:成绩(整数)

Format

Input

Output

Samples

5
wang 15 98
wu 16 99
xu 15 99
yue 16 80
li 16 90
xu 15 99
wu 16 99
wang 15 98
li 16 90
yue 16 80

Limitation

1s, 1024KiB for each test case.