提交时间:2021-05-22 16:58:19
运行 ID: 135
#include <iostream> using namespace std; int main() { int a[5][5],n=5; for (int i=0;i<5;i++) for (int j=0;j<5;j++) cin>>a[i][j]; int s=0; int hang,lie; for (hang=0;hang<n;hang++) { lie = 0; for (int j=1;j<n;j++){ if (a[hang][j]> a[hang][lie]) lie=j; } s=1; for (int i=0;i<n;i++){ if (a[i][lie]<a[hang][lie]){ s=0; } } } cout<<hang+1<<" "<<lie+1<<" "<<a[hang][lie]<<endl; }