| Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|---|
| 339670 | 马圣洁 | 【C4-10】靶心数 | C++ | 通过 | 100 | 1 MS | 256 KB | 360 | 2025-08-11 12:24:15 |
#include<bits/stdc++.h> using namespace std; int n,m,a[105][105]; 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; }