Problem H. Search Input file: Output file: standard input standard output Time limit: 2 seconds Memory limit: 64 megabytes Given number X and array. Determine If X is in array. Print "YES"or "NO"....


c++ simple code


Problem H. Search<br>Input file:<br>Output file:<br>standard input<br>standard output<br>Time limit:<br>2 seconds<br>Memory limit:<br>64 megabytes<br>Given number X and array. Determine If X is in array. Print

Extracted text: Problem H. Search Input file: Output file: standard input standard output Time limit: 2 seconds Memory limit: 64 megabytes Given number X and array. Determine If X is in array. Print "YES"or "NO". Input First line contains N - number of elements in array. Next N lines contain elements of array. Last line contains one number - X. Output "YES"or "NO" Examples standard input standard output 1 NO 8 YES 1 2 3 4 5 4

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here