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

PROGRAMMING:Who didn't finish the experiment?

Luz5年前 (2021-05-10)题库425
At the end of a semester, the teacher wants to know whether some students have not conducted a computer experiment, that is, they have not submitted a program. Now the teacher has exported the submission records of all the students from the platform * * and has arranged them in the order from small to large * * according to the number of the students. Now I will give you some student numbers to help the teacher see if these students have submitted records.
###Input format:
The first line is an integer $$n $, which indicates the number of times of all submissions $$(0 < n < = 2000000) $.
The following $$n $$line represents the corresponding student number $$a for each submission_ i,(0In the next line, an integer m indicates the number of students to query M $$(0 < m < = 10000) $$.
Next, m lines, each line has a student number (the number is in the range of int).
###Output format:
The output of "yes" or "no" indicates whether the student has submitted the record( Output (without quotation marks)
###Input sample 1:
```in
five
one
one
two
three
four
one
one
```
###Output sample 1:
```out
Yes
```
###Input sample 2:
```in
five
one
one
two
two
four
two
six
one
```
###Output sample 2:
```out
No
Yes
```







answer:If there is no answer, please comment