func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     long long int n;     cin >> n;     string a, b;     vector<long long int> v1, v2;     for (long long int i = 0; i < n; i++) {       long long int x, y;       cin >> x >> y;       v1.push_back(x);       v2.push_back(y);       a +=  0 ;       b +=  0 ;     }     long long int i = 0, j = 0;     while ((i + j) != n) {       if (v1[i] <= v2[j])         a[i] =  1 , i++;       else         b[j] =  1 , j++;     }     for (long long int i = 0; i < n / 2; i++) {       a[i] =  1 ;       b[i] =  1 ;     }     cout << a << endl << b;     return 0;   }   