Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
49153 | 万正钰 | 计算鞍点 | C++ | Accepted | 1 MS | 272 KB | 826 | 2023-06-23 15:18:07 |
# include<iostream> # include<cstring> # include<cmath> using namespace std; int main() { int i=0,j=0,a[6][6],n=0,m=0,big=0,small=0; for(i=0;i<5;i++){ for(j=0;j<5;j++){ cin>>a[i][j]; } } for(i=0;i<5;i++){ big=0; small=1000; for(j=0;j<5;j++){ if(a[i][j]>big){ big=a[i][j]; n=j; } } for(j=0;j<5;j++){ if(a[j][n]<small){ small=a[j][n]; m=j; } } if(big==small){ break; } } if(big==small) cout<<m+1<<" "<<n+1<<" "<<big; else cout<<"not found"; return 0; }