Run ID:157305

提交时间:2026-07-22 13:28:08

#include<bits/stdc++.h> using namespace std; int main(){ int a[5][5]={},h,l,max,min,q=0; for(int i=0;i<5;i++){ for(int j=0;j<5;j++) cin>>a[i][j]; } for(int i=0;i<5;i++){ max=0; min=10000; for(int j=0;j<5;j++){ if(max<a[i][j]){ max=a[i][j]; l=j; } } for(int q=0;q<5;q++){ if(min>a[q][l]){ min=a[q][l]; h=q; } } if(min==max){ cout<<h+1<<' '<<l+1<<' '<<max<<endl; return 0; } else{ cout<<"not found"<<endl; return 0; } } return 0; }