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

PROGRAMMING:Credit statistics

Luz5年前 (2021-05-10)题库465
It is known that a university chooses a four level system for course selection, which is a, B, C and D. grade A, B and C get credits, while grade D has no credits. According to the regulations, the students whose academic achievement is greater than or equal to 85 are Grade A, 70-84 are Grade B, 60-69 are grade C, and those whose score is less than 60 are grade D. please write a program to convert the score into grade, and count the number of people who have not obtained credits.
###Input format:
Enter a positive integer n (n < = 10) in the first line, which represents the number of students in the selected course, and then n lines, each line contains a student information, including student number (a number string without spaces with a length of 12), name (a string of characters without spaces with a length of no more than 20), score (an integer greater than or equal to 0 and less than or equal to 100).
###Output format:
According to the input order, the final grade information of all students who choose courses will be output. The information of students who choose courses will occupy one line, including student number, name and grade, separated by a space in the middle, and the number of students who have not obtained credits will be output in the next line.
###Input example:
```in
two
201001010101 li 85
201200000101 zhang 59
```
###Output example:
```out
201001010101 li A
201200000101 zhang D
one
```







answer:If there is no answer, please comment