Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
37098 奚晨瑞 计算鞍点 C++ 编译错误 0 MS 0 KB 634 2024-01-19 15:08:12

Tests(0/0):


#include<iostream> using namespace std; int main() { int a[100][100]; int n; cin>>n; for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ cin>>a[i][j]; } } bool c=1; for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ bool b=1; for(int s=0;s<n;s++){ if(s==j){ } else{ if(a[i][s]>=a[i][j]){ b=0; break; } } } for(int t=0;t<n;t++){ if(t==i){ } else{ if(a[t][j]<=a[i][j]){ b=0; break; } } } if(b==1){ cout<<i<<" "<<j<<" "a[i][j]<<endl; c=0; } } } if(c==1){ cout<<"not found"; } return 0; }


测评信息: