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

PROGRAMMING:Actors, please take your place

Luz5年前 (2021-05-10)题库405
The TV station holds a performance contest. The judges of each contest rate the actors. The actors who get the S-level will be promoted to the next contest directly. The other levels need to continue the competition. If the score is more than or equal to 90, it will be rated as S-level, 80-89 as A-level, 70-79 as B-level, and below 70 as C-level. Please help the organizer to automatically generate the level and count the number of direct promotion.
###Input format:
Enter a positive integer n (n < = 10) in the first line to represent the number of actors participating in the competition, and then n lines. Each line contains a performer information, including number (a number string with 3 length and no spaces), name (a string of characters with no spaces and no more than 20 length) and score (an integer greater than 0 and less than or equal to 100).
###Output format:
According to the input order, the final grade information of all the contestants is output. One contestant's information takes up one line, including number, name and grade, separated by a space in the middle, and then the number of direct promotion is output in the next line.
###Input example:
```in
two
000 li 90
010 zhang 80
```
###Output example:
```out
000 li S
010 zhang A
one
```







answer:If there is no answer, please comment