-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path18.5-1.cpp
More file actions
67 lines (61 loc) · 1.07 KB
/
Copy path18.5-1.cpp
File metadata and controls
67 lines (61 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//#include<iostream>
//#include<bits/stdc++.h>
//#include<algorithm>
//#include<vector>
//#include<string>
//
//using namespace std;
//
//int main(){
// long long int N;
// cin >> N;
// for(int i=1;i<=N;i++){
// if(i%3==0 && i%5==0){
// cout << "FizzBuzz" << endl;
// }
// else if(i%3==0){
// cout << "Fizz" << endl;
// }
// else if(i%5==0){
// cout << "Buzz" << endl;
// }
// else if(i%3!=0 && i%5!=0){
// cout << i << endl;
// }
// }
// return 0;
//}
#include<bits/stdc++.h>
#include<iostream>
using namespace std;
int main(){
long long int n,arr[100],k;
cin >> n;
for(int i=1;i<=n;i++){
cin >> arr[i];
}
cin >> k;
int i;
for(int i=1;i<=n;i++){
if(arr[i]==k){
cout << "YES" << endl;
break;
}
else{
cout << "NO" << endl;
break;
}
break;
}
return 0;
}
#include<bits/stdc++.h>
#include<iostream>
using namespace std;
int main(){
int T;
cin >> T;
while(T--){
}
return 0;
}