Is it here?

Report a typo

Write a program that checks if a set of N numbers contain a number M.

The first line contains the N number.
The next N lines contain the numbers.
The last line contains one integer number M.

You need to output YES or NO.

Sample Input 1:

3
1
3
2
3

Sample Output 1:

YES

Sample Input 2:

5
1
3
2
5
4
7

Sample Output 2:

NO
Write a program in Kotlin
fun main() {
// write your code here
}
___

Create a free account to access the full topic