Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
66358 冯诚阳 计算鞍点 C++ Wrong Answer 0 MS 264 KB 569 2024-03-07 18:42:59

Tests(0/10):


Code:

# include<iostream> using namespace std; int main(){ int a[6][6],max,min,maxj=0,mini=0; for(int i=1;i<6;i++) for(int j=1;j<6;j++) cin>>a[i][j]; for(int i=1;i<6;i++){ max=0; min=10000; for(int j=1;j<6;j++){ if(a[i][j]>max){ max=a[i][j]; maxj=j; } } for(int j=1;j<6;j++){ if(a[j][i]<min){ min=a[j][maxj]; } } if(min==max){ cout<<i<<" "<<maxj<<" "<<max; return 0; } } cout<<"not found"; return 0; }


Run Info:

------Input------
8 2 16 9 15 5 14 13 17 22 12 10 21 23 24 25 19 7 3 4 20 6 11 1 18
------Answer-----
not found
------Your output-----
5 1 20