Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
133566 袁龙浩 计算鞍点 C++ Wrong Answer 1 MS 272 KB 844 2025-10-19 16:04:12

Tests(2/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 n=5,a[6][6],max=0,h,l,min=99999; for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ cin>>a[i][j]; } } for(int i=1;i<=n;i++){ max=-1; for(int j=1;j<=n;j++){ if(a[i][j]>max){ max=a[i][j]; h=j; } } min=10000; for(int j=1;j<=5;++j) if(a[j][h]<min){ min=a[j][h]; l=j; } } if(max==min){ cout<<l<<" "<<h<<" "<<max;return 0; } else{ cout<<"not found"; } return 0; }


Run Info:

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