提交时间:2025-12-07 15:45:47
运行 ID: 75529
#include<bits/stdc++.h> using namespace std; int main(){ int a[5][5]; for(int i=0;i<5;i++){ for(int j=0;j<5;j++){ cin>>a[i][j]; } } int i0=-1,j0=-1; bool c=true; for(int i=0;i<5;i++){ for(int j=0;j<5;j++){ c=true; for(int k=0;k<5;k++){ if(a[i][k]>a[i][j]){ c=false; } if(a[k][j]<a[i][j]){ c=false; } } if(c==true){ i0=i; j0=j; } } } if(i0==-1||j0==-1){ cout<<"not found"; }else{ cout<<i0+1<<" "<<j0+1<<" "<<a[i0][j0]; } return 0; }