func_code_string: #include <bits/stdc++.h>   using namespace std;   const double EPS = 1E-9;   const int INF = 1000000000;   const long long INF64 = (long long)1E18;   const double PI = 3.1415926535897932384626433832795;   long long gcd(long long a, long long b) {     if (a < b) return gcd(b, a);     if (b == 0) return a;     return gcd(b, a % b);   }   int main() {     char *s = new char[2000000];     char *z = new char[2000000];     long long i, j, n, a, b, c, x = 0, y = 0, slen;     memset(s, 0, 2000000);     memset(z, 0, 2000000);     cin >> s;     slen = strlen(s);     for (i = 0; i < slen; ++i)       if (s[i] ==  x )         x++;       else         y++;     if (x > y) {       x = x - y;       for (i = 0; i < x; ++i) z[i] =  x ;     } else {       y = y - x;       for (i = 0; i < y; ++i) z[i] =  y ;     }     cout << z;     return 0;   }   