func_code_string: #include <bits/stdc++.h>   using namespace std;   const int N = 28;   vector<int> g[N];   int vis[2000000];   int main() {     int k, n;     string ss, s;     cin >> k >> ss;     for (int i = 0; i < k; ++i) s += ss;     for (int i = 0; i != s.size(); ++i) g[s[i] -  a ].push_back(i);     cin >> n;     vector<int>::iterator it;     for (int i = 0; i < n; ++i) {       cin >> k >> ss;       it = g[ss[0] -  a ].begin();       g[ss[0] -  a ].erase(it + k - 1);     }     memset(vis, 0, sizeof(vis));     for (int i = 0; i < 26; ++i)       for (int j = 0; j < g[i].size(); ++j) vis[g[i][j]] = 1;     for (int i = 0; i != s.size(); ++i)       if (vis[i]) cout << s[i];     return 0;   }   