func_code_string: #include <bits/stdc++.h>   using namespace std;   #define rep(i, a, b) for(int i = a; i < b; ++i)      int debug = 0;      const int N = 510;      int n, p[N], a[N][N];      int main() {       cin >> n;       rep(i, 1, n + 1) {           cin >> p[i];       }       rep(i, 1, n + 1) {           int x = i, y = i;           rep(_, 0, p[i]) {               a[x][y] = p[i];               if (y > 1 && a[x][y - 1] == 0) {                   --y;               } else {                   ++x;               }           }       }       rep(i, 1, n + 1) {           rep(j, 1, i + 1) {               cout << a[i][j] <<    ;           }           cout <<   n ;       }   }