func_code_string: #include <bits/stdc++.h>   using namespace std;   const int sz = 100005;   int a[sz], b[sz], sum[sz];   int main() {     int n, m, c;     cin >> n >> m >> c;     for (int i = 1; i <= n; i++) cin >> a[i];     for (int i = 1; i <= m; i++) {       cin >> b[i];       sum[i] = (sum[i - 1] + b[i]) % c;     }     for (int i = 1; i <= n; i++) {       int l, r;       r = min(m, i);       l = max(1, m - (n - i + 1) + 1);       if (l <= r) a[i] += (sum[r] - sum[l - 1] + 3 * c);       a[i] %= c;       cout << a[i] <<    ;     }   }   