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

PROGRAMMING:Can you go to school?

Luz5年前 (2021-05-10)题库477
According to relevant regulations, children who have reached the age of 6 before August 31 of that year can sign up for primary school. Now it is necessary to check whether the children have the qualification of registration according to the ID card number.
###Input format:
In the first line, enter an integer n to indicate the number of children enrolled; Enter a child's 18 ID number on each line.
###Output format:
Each line outputs the audit results of the corresponding child. If the child is over 6 years old as of August 31 this year, he / she is qualified to apply, and outputs "yes", otherwise outputs "no". The last line outputs the number of people who have passed the audit and those who have not.
###Input example:
```in
four
three hundred and thirty thousand one hundred and three trillion and two hundred and one billion four hundred and eight million eleven thousand eight hundred and ten
one hundred and ten thousand one hundred and five trillion and two hundred and one billion four hundred and nine million sixteen thousand three hundred and twelve
two hundred and twenty thousand one hundred and ten trillion and two hundred and one billion three hundred and ten million two hundred and five thousand two hundred and eighty-three
31020420150115836X
```
###Output example:
```out
YES
NO
YES
NO
Pass: 2; Fail: 2
```







answer:If there is no answer, please comment