0 Runtime Error
# | 状态 分数 | 耗时 | 内存占用 |
---|---|---|---|
#1 | Runtime Error 0 | 7ms | 1016 KiB |
#2 | Runtime Error 0 | 7ms | 1 MiB |
#3 | Runtime Error 0 | 7ms | 1016 KiB |
#4 | Runtime Error 0 | 7ms | 1 MiB |
#5 | Runtime Error 0 | 7ms | 1016 KiB |
#6 | Runtime Error 0 | 7ms | 1.1 MiB |
#7 | Runtime Error 0 | 7ms | 1 MiB |
#8 | Runtime Error 0 | 6ms | 1016 KiB |
#9 | Runtime Error 0 | 6ms | 1012 KiB |
#10 | Runtime Error 0 | 6ms | 1 MiB |
代码
#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
int n,a[18][18];
cin>>n;
int a[n-1][0]=1;
for(int i=n-2;i>=0;i--)
{ int i1=i;int j=0;
for(j=0;j<=n-(i);j++)
{
printf("%4d",a[i][j]);
}
for(i1;i<=n-1;i++)
{
printf("%4d",a[i][j]);
}
}
return 0;
}
信息
- 递交者
- 题目
- P369 练63.3 迂回方阵
- 语言
- Bash
- 代码长度
- 366 Bytes
- 递交时间
- 2025-4-5 11:18:36
- 评测时间
- 2025-4-5 11:18:37
- 分数
- 0
- 总耗时
- 69ms
- 峰值时间
- 7ms
- 峰值内存
- 1.1 MiB