#include<bits/stdc++.h> using namespace std; int main(){ int n,i,j; cin>>n; for(i=1;i<=n;i++){ for(j=1;j<=n-i;j++){ cout<<" "; } for(j=1;j<=i*2-1;j++){ cout<<j; } cout<<endl; } } /************************************************************** Problem: 1072 User: linzihang Language: C++ Result: Accepted Time:8 ms Memory:2072 kb ****************************************************************/