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