-->
当前位置:首页 > 题库

PROGRAMMING:Looking for the most handsome

Luz5年前 (2021-05-10)题库419
There are six students in dormitory 202. They are very confident about their appearance. This is a fruitless argument. Just a few days ago, they just finished the exam, so they want to find out the most handsome one in 202 by their exam results. You know their rules and grades and ask you to give them answers in code.
Rule: the excellent grade stipulated by the head teacher is n. if the grades of all six students exceed the excellent grade, please output "202 Zui Shuai". If the grades of all six students are lower than the excellent grade, please output "come on!", If the scores of the six students are likely to be higher than, lower than or equal to the excellent ones, please output "Zui Shuai" first, and then output the scores of the students closest to the excellent ones. Please output the scores of all the students who are higher than the excellent ones at this time, and there is no extra space at the end of the line.
###Input format:
Input n in the first line, representing the excellent results given by the head teacher.
Enter the scores of six students in the second line.
###Output format:
Output the scores of "Zui Shuai" and the most handsome students according to the requirements.
###Input example:
```in
eighty-eight
90 91 91 92 99 98
```
```in
ninety
78 80 88 85 82 89
```
```in
eighty-eight
79 80 87 89 90 99
```
###Output example:
```out
202 zui shuai
```
```out
come on!
```
```out
zui shuai
eighty-seven
89 90 99
```







answer:If there is no answer, please comment