func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     ios_base ::sync_with_stdio(false);     cin.tie(NULL);     cout.tie(NULL);     int t;     cin >> t;     for (int i = 0; i < t; i++) {       int n;       cin >> n;       string x;       cin >> x;       string a(n,  0 );       string b(n,  0 );       for (int j = 0; j < n; j++) {         if (x[j] ==  0 ) {           a[j] =  0 ;           b[j] =  0 ;         } else if (x[j] ==  2 ) {           a[j] =  1 ;           b[j] =  1 ;         } else {           a[j] =  1 ;           b[j] =  0 ;           for (int k = j + 1; k < n; k++) {             a[k] =  0 ;             b[k] = x[k];           }           break;         }       }       cout << a << endl;       cout << b << endl;     }   }   