func_code_string: #include <bits/stdc++.h>   using namespace std;   long long a[400001], b[400001];   int main(void) {     ios::sync_with_stdio(0);     cin.tie(0);     unsigned n;     cin >> n;     for (unsigned i = 1; i <= n / 2; ++i) cin >> b[i];     a[1] = 0;     a[n] = b[1];     for (unsigned i = 2; i <= n / 2; ++i) {       if (b[i] - a[i - 1] <= a[n - i + 2]) {         a[i] = a[i - 1];         a[n - i + 1] = b[i] - a[i];       } else {         a[n - i + 1] = a[n - i + 2];         a[i] = b[i] - a[n - i + 1];       }     }     for (unsigned i = 1; i <= n; ++i) cout << a[i] <<    ;     return 0;   }   