0
已解决
黄子澄
中级天翼
中级天翼
#include<iostream>
#include<string>
#include<cstring>
#include<cstdio>
#include<algorithm>
#include<cmath>
#include<cstdlib>
#include<queue>
#include<iomanip>
using namespace std;
int main(){
int n,m,a,b;
cin>>n>>m>>b;
for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){
cin>>a;
if(a==b){
cout<<"YES";
exit(0);
}
if(a>b){
cout<<"NO";
exit(0);
}
}
}
cout<<"NO";
return 0;
}
90