func_code_string: #include <bits/stdc++.h>   using namespace std;   bool vis[100006];   int main() {     int n, k;     while (cin >> n >> k) {       memset(vis, false, sizeof(vis));       int st = 1, ed = 1 + k;       int cnt = 0;       while (cnt < k && st <= ed) {         if (st != ed)           vis[st] = vis[ed] = true, cout << st <<     << ed <<    ;         else           vis[st] = true, cout << st <<    ;         st++, ed--;         cnt++;       }       for (int i = 1; i <= n; i++) {         if (!vis[i]) cout << i <<    ;       }       puts(  );     }     return 0;   }   