#include <stdio.h> int main(){ int n; if (scanf("%d",&n)!=EOF){ for (int m=1;m<=n;m++){ if (m==1){ // 打印空格 for (int j=0;j<39-m;j++){printf(" ");} printf("1\n");} else{ for (int j=0;j<39-m;j++){printf(" ");} for (int i=1;i<=m;i++){printf("%d",i);} for (int i=m-1;i>=1;i--){printf("%d",i);} printf("\n"); } } } else{ printf("input wrong"); } return 0; }