func_code_string: #include <bits/stdc++.h>   using namespace std;   int as[10001];   int main() {     ios::sync_with_stdio(0);     cin.tie(0);     int n, k;     cin >> n >> k;     for (int i = 1; i <= n; ++i) as[i] = 1;     as[n] = 0;     for (int j = 0; j < k; ++j) {       for (int i = 1; i <= n - (1 << (j + 1)); ++i) {         if (as[i] != n - i) {           cout << n - (1 << j) <<    ;           as[i] += as[n - (1 << j)];         } else {           cout << n <<    ;         }       }       int x = 1;       if (n - (1 << (j + 1)) + 1 > 0) {         for (int i = n - (1 << (j + 1)) + 1; i <= n; ++i) {           if (as[i] != n - i) {             cout << n - (1 << j) + x <<    ;             as[i] += as[n - (1 << j) + x];             ++x;           } else {             cout << n <<    ;           }         }       } else {         for (int i = 1; i <= n; ++i) {           if (as[i] != n - i) {             cout << i + as[i] <<    ;             as[i] += as[i + as[i]];           } else {             cout << n <<    ;           }         }       }       cout <<   n ;     }     return 0;   }   