| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157307 | 孔声豪 | 计算鞍点 | C++ | Wrong Answer | 1 MS | 268 KB | 761 | 2026-07-22 13:31:49 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() using namespace std; int main(){ long long h,l,max,min,a[5][5]={}; for(int i=0;i<5;i++){ for(int j=0;j<5;j++)cin>>a[i][j]; } for(int i=0;i<5;i++){ max=0; min=10000000000; for(int j=0;j<5;j++){ if(a[i][j]>max){ max=a[i][j]; l=j; } } for(int k=0;k<5;k++){ if(a[i][l]<min){ min=a[i][l]; h=i; } } if(max==min){ cout<<h+1<<' '<<l+1<<' '<<a[h][l]; return 0; } } cout<<"no"; 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 3 16