func_code_string: #include <bits/stdc++.h>   using namespace std;   void substr(int start, int end, char in[], char out[]) {     for (int i = start; i < end; ++i) out[i - start] = in[i];     out[end - start] =   0 ;   }   int main() {     int n, p, q;     char s[100];     cin >> n >> p >> q;     cin >> s;     int pdivmax = n / p + 1, qdivmax = n / q + 1;     bool divided = false;     if (p == q) {       if (n % p == 0) {         cout << n / p << endl;         for (int i = 0; i < n; i += p) {           char out[100];           substr(i, i + p, s, out);           cout << out << endl;         }         divided = true;       }     } else {       for (int i = 0; i < pdivmax; ++i) {         for (int j = 0; j < qdivmax; ++j) {           if (p * i + q * j == n) {             cout << i + j << endl;             for (int k = 0; k < p * i; k += p) {               char out[100];               substr(k, k + p, s, out);               cout << out << endl;             }             for (int k = p * i; k < n; k += q) {               char out[100];               substr(k, k + q, s, out);               cout << out << endl;             }             divided = true;             break;           }         }         if (divided) break;       }     }     if (!divided) cout << -1 << endl;     return 0;   }   