Run ID:49153

提交时间:2023-06-23 15:18:07

# include<iostream> # include<cstring> # include<cmath> using namespace std; int main() { int i=0,j=0,a[6][6],n=0,m=0,big=0,small=0; for(i=0;i<5;i++){ for(j=0;j<5;j++){ cin>>a[i][j]; } } for(i=0;i<5;i++){ big=0; small=1000; for(j=0;j<5;j++){ if(a[i][j]>big){ big=a[i][j]; n=j; } } for(j=0;j<5;j++){ if(a[j][n]<small){ small=a[j][n]; m=j; } } if(big==small){ break; } } if(big==small) cout<<m+1<<" "<<n+1<<" "<<big; else cout<<"not found"; return 0; }