| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 75526 | sh25_ganzy | 计算鞍点 | C++ | 编译错误 | 0 MS | 0 KB | 759 | 2025-12-07 15:44:31 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[5][5]; for(int i=0;i<5;i++){ for(int j=0;j<5;j++){ cin>>a[i][j]; } } int i0=-1,j0=-1; bool c=true; for(int i=0;i<5;i++){ for(int j=0;j<5;j++){ c=true; for(int k=0;k<5;k++){ if(a[i][k]>a[i][j]){ c=false; } if(a[k][j]<a[i][j]){ c=false; } } if(c==true){ i0=i; j0=j; } } } if(i==-1||j==-1){ cout<<"not found"; }else{ cout<<i0<<" "<<j0<<" "<<a[i0][j0]; } return 0; }