Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
112637 | 罗子童 | 计算鞍点 | C++ | Wrong Answer | 1 MS | 268 KB | 955 | 2025-03-09 19:38:16 |
#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 i=0,j=0,n=0,m=0,max=0,min=0,flag=0; int a[5][5]={0}; for(int i=0;i<5;i++){ for(int j=0;j<5;j++){ cin>>a[i][j]; } } for(int j=1;j<=n;j++){ max=0; min=1000; for(int j=0;j<5;j++){ if(max<a[i][j]){ max=a[i][j]; n=j; } } for(int j=0;j<5;j++){ if(min>a[j][n]){ min=a[j][n]; m=j; } } if(max==min)break; } if(max==min){ cout<<m+1<<" "<<n+1<<" "<<max<<endl; } else{ cout<<"not found"; } return 0; }
------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-----
1 1 0