Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
364993 李铭泽 【C4-10】靶心数 C++ 通过 100 3 MS 260 KB 359 2025-11-30 16:58:17

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int n,m,a[105][105],s; int main(){ cin>>n>>m; for(int i=1;i<=n;i++){ for(int j=1;j<=m;j++){ cin>>a[i][j]; } } for(int i=2;i<n;i++){ for(int j=2;j<m;j++){ if(a[i][j]>a[i-1][j]&&a[i][j]>a[i+1][j]&&a[i][j]>a[i][j-1]&&a[i][j]>a[i][j+1]) cout<<a[i][j]<<endl; } } return 0; }


测评信息: