Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
113951 郝王骏程 计算鞍点 C++ Wrong Answer 0 MS 276 KB 929 2025-03-17 21:02:05

Tests(0/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a[6][6],max,maxj,min,minj; for(int i=1;i<=5;i++) for(int j=1;j<=5;j++) cin>>a[i][j]; for(int i=1;i<=5;i++){ max=0,min=999; for(int j=1;j<=5;j++){ if(a[i][j]>max){ max=a[i][j]; maxj=j; }} for(int j=1;j<=5;j++){ if(a[j][maxj]>min){ min=a[j][maxj]; minj=j; } } if(min=max){ cout<<minj<<" "<<maxj<<" "<<max; } } 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-----
0 3 160 5 220 5 240 1 250 1 20not found