Number in a set

Report a typo

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

The first line contains the N number.
The next N lines contain the set of numbers one number per line.

The last line contains one integer number M.

You need to output either YES or NO.

Sample Input 1:

3
1
3
2
3

Sample Output 1:

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

Create a free account to access the full topic