| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 73283 | sh25_ganzy | 计算鞍点 | C++ | 解答错误 | 0 MS | 248 KB | 808 | 2025-11-08 19:12:36 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[5][5],i0=-1,j0=-1,n0=-1; bool b=true; for(int i=0;i<5;i++){ for(int j=0;j<9;j++){ cin>>a[i][j]; } } for(int i=0;i<5;i++){ for(int j=0;j<5;j++){ for(int k=0;k<5;k++){ if(a[i][j]>a[i][k]){ b=false; } } for(int k=0;k<5;k++){ if(a[i][j]<a[k][j]){ b=false; } } if(b==true){ i0=i; j0=j; n0=a[i][j]; } } } if(i0==-1||j0==-1){ cout<<"not found"; }else{ cout<<i0<<" "<<j0<<" "<<n0; } return 0; }