func_code_string: #include <bits/stdc++.h>   using namespace std;   int s[101][101];   int main() {     int n, a, r;     cin >> n;     a = 100;     while (a * (a - 1) * (a - 2) / 6 > n) a--;     n -= a * (a - 1) * (a - 2) / 6;     r = a;     for (int i = 1; i < a; i++)       for (int j = i + 1; j <= a; j++) s[i][j] = s[j][i] = 1;     for (int i = a; i >= 2; i--) {       while (n >= i * (i - 1) / 2) {         n -= i * (i - 1) / 2;         r++;         for (int j = 1; j <= i; j++) {           s[r][j] = s[j][r] = 1;         }       }     }     cout << r << endl;     for (int i = 1; i <= r; i++) {       for (int j = 1; j <= r; j++) {         cout << s[i][j];       }       cout << endl;     }     return 0;   }   