Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
29675 wangfengbo 计算鞍点 C++ 编译错误 0 MS 0 KB 511 2023-11-01 20:36:17

Tests(0/0):


#include<iostream> using namespace std; int main(){ int num[5][5],max=0,y;//申明变量,max:保存每行最大值 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++){ max=0; 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; } } }


测评信息: