| Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|---|
| 364990 | 王冠程 | 【C4-10】靶心数 | C++ | 通过 | 100 | 2 MS | 260 KB | 410 | 2025-11-30 16:53:55 |
#include<bits/stdc++.h> using namespace std; int a[30][30],n,m; 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=1;i<=n;i++){ for(int j=1;j<=m;j++){ if(j!=1&&i!=1&&i!=n&&j!=m){ if(a[i][j]>a[i-1][j]&&a[i][j]>a[i][j-1]&&a[i][j]>a[i][j+1]&&a[i][j]>a[i+1][j]){ cout<<a[i][j]<<endl; } } } } return 0; }