Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
114981 | Kevin | 计算鞍点 | C++ | Accepted | 1 MS | 268 KB | 448 | 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; }