acgo.***
2026-08-29 13:20:46
发布于:内蒙古
1阅读
0回复
0点赞
/*
This code was automatically submitted by chhongzh's bot!
More info: jj66amvxo[at]mozmail[dot]com
Submit At: 2026-05-22 04:04:33
Time Used: 672.751626ms
*/
#include<bits/stdc++.h>
#define ll long long
using namespace std;
int n,m;
char w[3005][3005],x[3005],y[3005];
int main(){
scanf("%d%d",&n,&m);
for(int i=1;i<=n;i++){
x[i]=123;
y[i]=96;
for(int j=1;j<=m;j++){
cin>>w[i][j];
x[i]=min(x[i],w[i][j]);
y[i]=max(y[i],w[i][j]);
}
// cout<<x[i]<<" "<<y[i]<<endl;
}
for(int i=1;i<=n;i++){
bool ok=1;
for(int j=1;j<=n;j++){
if(i!=j&&x[i]>=y[j]){
ok=0;
}
}
cout<<ok;
}
return 0;
}
这里空空如也








有帮助,赞一个