func_code_string: #include <bits/stdc++.h>   int const MAX = 1e5 + 5;   using namespace std;   char ans[50][50];   void place(long long s, long long e, long long c, long long cnt) {     int f = 0;     for (long long i = s; i < e; i += 2) {       for (long long j = 0; j < 50; j += 2) {         if (cnt == 0) {           f = 1;           break;         }         ans[i][j] = c;         cnt--;       }       if (f == 1) break;     }     return;   }   int main() {     ios_base::sync_with_stdio(false);     cin.tie(0);     cout.tie(0);     long long a, b, c, d;     cin >> a >> b >> c >> d;     a--, b--, c--, d--;     for (long long i = 0; i < 10; i++)       for (long long j = 0; j < 50; j++) ans[i][j] =  A ;     for (long long i = 10; i < 20; i++)       for (long long j = 0; j < 50; j++) ans[i][j] =  B ;     for (long long i = 20; i < 30; i++)       for (long long j = 0; j < 50; j++) ans[i][j] =  C ;     for (long long i = 30; i < 50; i++)       for (long long j = 0; j < 50; j++) ans[i][j] =  D ;     cout << 50 <<     << 50 << endl;     place(1, 10,  B , b);     place(11, 20,  A , a);     place(21, 30,  D , d);     place(31, 50,  C , c);     for (long long i = 0; i < 50; i++) {       for (long long j = 0; j < 50; j++) cout << ans[i][j];       cout << endl;     }   }   