Run ID:114981
提交时间:2025-03-26 15:31:55
#include<bits/stdc++.h> using namespace std; int a[6][6]; int main(){ int i,j,x=0,y,z; bool q; for(i=1;i<=5;i++){ for(j=1;j<=5;j++){ cin>>a[i][j]; } } for(i=1;i<=5;i++){ q=true;x=0; for(j=1;j<=5;j++) if(a[i][j]>x){ x=a[i][j]; y=j; z=i; } for(j=1;j<=5;j++){ if(a[j][y]<x) q=false; } if(q==true){ cout<<z<<" "<<y<<" "<<x; return 0; } } cout<<"not found"; return 0; }