func_code_string: #include <bits/stdc++.h>   using namespace std;   const int oo = 0x3f3f3f3f;   char str[2001000], g[2001000];   int a[2001000];   int main() {     scanf( %s , str);     int m;     scanf( %d , &m);     memset((a), (0), sizeof(a));     for (int(i) = (0); (i) < (m); ++(i)) {       int x;       scanf( %d , &x);       x--;       a[x] ^= 1;     }     int n = strlen(str);     int k = 0;     for (int(i) = (0); (i) < (n / 2); ++(i)) {       k ^= a[i];       if (k) {         g[i] = str[n - 1 - i];         g[n - 1 - i] = str[i];       } else {         g[i] = str[i];         g[n - 1 - i] = str[n - 1 - i];       }     }     if (n & 1) g[n >> 1] = str[n >> 1];     g[n] = 0;     printf( %s n , g);   }   