func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n;     cin >> n;     vector<int> A(n + 10, 0);     for (int i = 0; i < n; i++) cin >> A[i];     unordered_map<long long, int> fir, sec;     fir[A[0]] = 1;     for (int i = 1; i < n; i++) sec[A[i]]++;     long long S = 0;     for (int i = 0; i < n; i++) S += A[i];     long long sdash = 0;     if (S & 1) {       cout <<  NO  << endl;       return 0;     }     for (int i = 0; i < n; i++) {       sdash += A[i];       if (sdash == S / 2) {         cout <<  YES ;         return 0;       }       if (sdash < S / 2) {         long long x = S / 2 - sdash;         if (sec[x] > 0) {           cout <<  YES ;           return 0;         }       } else {         long long y = sdash - S / 2;         if (fir[y] > 0) {           cout <<  YES ;           return 0;         }       }       fir[A[i + 1]]++;       sec[A[i + 1]]--;     }     cout <<  NO ;     return 0;   }   