func_code_string: #include <bits/stdc++.h>   using namespace std;   const int32_t MAX = 1000000 + 1;   int64_t ans[MAX];   int main(int argc, char *argv[]) {     ios_base::sync_with_stdio(false);     ifstream in( input.txt );     ofstream out( output.txt );     int64_t n, q, k = 0, type, evenSh = 0, oddSh = 0, parity = 0, lastSh = 0;     scanf( %I64d , &n);     scanf( %I64d , &q);     for (int32_t t = 0; t < q; ++t) {       scanf( %I64d , &type);       if (type == 1) {         scanf( %I64d , &k);         evenSh += k;         oddSh += k;         lastSh += k;       } else {         if ((parity + lastSh) % 2 == 0) {           lastSh = 0;           parity = 1;           evenSh -= 1;           oddSh += 1;         } else {           lastSh = 0;           parity = 0;           evenSh += 1;           oddSh -= 1;         }       }     }     if (oddSh < 0) oddSh = n - ((-oddSh) % n);     if (evenSh < 0) evenSh = n - ((-evenSh) % n);     for (int64_t i = 0; i < n; ++i)       if ((i + 1) % 2 == 1)         ans[(i + oddSh) % n] = i + 1;       else         ans[(i + evenSh) % n] = i + 1;     for (int64_t i = 0; i < n; ++i) printf( %I64d  , ans[i]);     return 0;   }   