| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 8415 | 刘逸杭 | 数字方阵 | C++ | Wrong Answer | 0 MS | 268 KB | 362 | 2025-12-13 21:16:20 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,a[10][10]; cin>>n; for(int i=1;i<=n/2+1;i++) for(int j=i;j<=n-i+1;j++) for(int k=i;k<=n-i+1;k++) a[j][k]=i; for(int i=0;i<n;i++){ for(int j=0;j<n;j++) cout<<a[i][j]<<' '; cout<<endl; } return 0; }
------Input------
5
------Answer-----
1 1 1 1 1 1 2 2 2 1 1 2 3 2 1 1 2 2 2 1 1 1 1 1 1
------Your output-----
7597216 0 7593440 0 0 576 1 1 1 1 2432 1 2 2 2 5253216 1 2 3 2 752086672 1 2 2 2