@[lijiatu123](/user/811425)
```cpp
#include<stdio.h>
int main()
{
int n,i,j,w=1,h,b=1;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
for(j=1;j<=n;j++,w++)
{
if(w<10)
printf("0%d",w);
else
printf("%d",w);
}
printf("\n");
}
for(i=1;i<=n;i++)
{
printf("\n");
for(h=n-i;h>0;h--)
{
printf(" ");
}
for(j=1;j<=i;j++,b++)
{
if(b<10)
printf("0%d",b);
else
printf("%d",b);
}
}
return 0;
}
```
by tommyfj @ 2022-11-01 15:57:08
亲测,可以AC
by tommyfj @ 2022-11-01 15:57:35
```
好像还是不行
by lijiatu123 @ 2022-11-01 16:03:42
你提交的是错误的,我发的可以AC
by tommyfj @ 2022-11-01 16:12:27
@[lijiatu123](/user/811425)
by tommyfj @ 2022-11-01 16:12:38
```kyxx
by lijiatu123 @ 2022-11-01 16:24:05
???
by tommyfj @ 2022-11-01 17:29:23