| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 133924 | 任艺宸 | 计算鞍点 | C++ | Wrong Answer | 1 MS | 276 KB | 644 | 2025-10-25 10:41:06 |
#include<iostream> using namespace std; int main(){ int a[6][6]={0},max=0,min=1000,h=0,l=0; 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=1000; for(int j=1;j<=5;j++){ if(max<a[i][j]){ max=a[i][j]; l=j; } } for(int k=1;k<=5;k++){ if(min>a[k][l]){ min=a[k][l]; h=k; } } if(max==min)break; } if(max==min){ cout<<l<<" "<<h<<" "<<max; } else cout<<"not found"<<endl; return 0; }
------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-----
5 1 5