提交时间:2025-11-08 19:12:36

运行 ID: 73283

#include<bits/stdc++.h> using namespace std; int main(){ int a[5][5],i0=-1,j0=-1,n0=-1; bool b=true; for(int i=0;i<5;i++){ for(int j=0;j<9;j++){ cin>>a[i][j]; } } for(int i=0;i<5;i++){ for(int j=0;j<5;j++){ for(int k=0;k<5;k++){ if(a[i][j]>a[i][k]){ b=false; } } for(int k=0;k<5;k++){ if(a[i][j]<a[k][j]){ b=false; } } if(b==true){ i0=i; j0=j; n0=a[i][j]; } } } if(i0==-1||j0==-1){ cout<<"not found"; }else{ cout<<i0<<" "<<j0<<" "<<n0; } return 0; }