雷斯

雷斯  •  2小时前


include <bits/stdc++.h>

using namespace std;

int main() {

int n, x;
int sum = 0;
cin >> n >> x;
for (int i = 1; i <= n; i++) {
	int a;
	cin >> a;
	if (a == x) {
		sum++;
	}
}
if (sum >= 1) {
	cout << "found";
} else {
	cout << "not found";
}
return 0;

}


评论:

请先登录,才能进行评论