Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
29680 | IKUN(ZHC) | 计算鞍点 | C++ | 解答错误 | 0 MS | 260 KB | 486 | 2023-11-01 20:40:38 |
#include<iostream> using namespace std; int main(){ int num[5][5],max=0,y; for(int i=0;i<5;i++){ for(int j=0;j<5;j++){ cin>>num[i][j]; } } for(int i=0;i<5;i++){ for(int j=0;j<5;j++){ if(num[i][j]>max){ max=num[i][j]; y=j; } } bool flag=true; for(int j=0;j<5;j++){ if(num[j][y]<max){ flag = false; break; } } if(flag){ cout<<i+1<<" "<<y+1<<" "<<max; return 0; } } cout<<"not found"; return 0; }