Run ID:133274

提交时间:2025-10-18 12:26:18

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a[5][5]={0},max=0,min=1000,h=0,l=0; for(int i=1;i<=5;i++){ for(int j=1;j<=5;j++)cin>>a[i][j]; } for(int i=1;i<=5;i++){ for(int j=1;j<=5;j++){ max=0; min=1000; if(max<a[i][j]){ max=a[i][j]; h=j; } } } for(int i=1;i<=5;i++){ for(int j=1;j<=5;j++){ if(min>a[i][j]){ min=a[i][j]; l=j; } } if(max==min)break; } if(max==min){ cout<<h<<"" <<l<<" "<<max; } else cout<<"not found"<<endl; return 0; }