7891666

<<shijunyu>>  •  1个月前


include

using namespace std;

int main() {

int n, x;
cin >> n >> x;
bool found = false;
for (int i = 0; i < n; i++) {
	int a;
	cin >> a;
	if (a == x) {
		found = true;
	}
}
if (found) {
	cout << "found" << endl;
} else {
	cout << "not found" << endl;
}

return 0;

}


评论:

请先登录,才能进行评论