func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int T;     cin >> T;     int Deb = 0;     int Fin = 9;     int Tab[10];     for (int j = 0; j < 10; j++) Tab[j] = 0;     char Cuck;     for (int j = 0; j < T; j++) {       cin >> Cuck;       if (Cuck ==  L ) {         Tab[Deb] = 1;         int curDeb = Deb;         while (Tab[curDeb] == 1 && curDeb < 10) curDeb++;         Deb = curDeb;       } else if (Cuck ==  R ) {         Tab[Fin] = 1;         int curFin = Fin;         while (Tab[curFin] == 1 && curFin >= 0) curFin--;         Fin = curFin;       } else {         int Ind = Cuck - 48;         Tab[Ind] = 0;         int curDeb = 0;         while (Tab[curDeb] == 1 && curDeb < 10) curDeb++;         Deb = curDeb;         int curFin = 9;         while (Tab[curFin] == 1 && curFin >= 0) curFin--;         Fin = curFin;       }     }     for (int j = 0; j < 10; j++) cout << Tab[j];   }   