Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
75529 sh25_ganzy 计算鞍点 C++ 通过 0 MS 244 KB 765 2025-12-07 15:45:47

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int a[5][5]; for(int i=0;i<5;i++){ for(int j=0;j<5;j++){ cin>>a[i][j]; } } int i0=-1,j0=-1; bool c=true; for(int i=0;i<5;i++){ for(int j=0;j<5;j++){ c=true; for(int k=0;k<5;k++){ if(a[i][k]>a[i][j]){ c=false; } if(a[k][j]<a[i][j]){ c=false; } } if(c==true){ i0=i; j0=j; } } } if(i0==-1||j0==-1){ cout<<"not found"; }else{ cout<<i0+1<<" "<<j0+1<<" "<<a[i0][j0]; } return 0; }


测评信息: