func_code_string: #include <bits/stdc++.h>   using namespace std;   const int N = 1e5;   int n;   int neg = 0;   string s[N + 5];   inline long long pars(int x) {     long long ret = 0LL;     for (int i = 0; i < s[x].size(); i++) {       if (s[x][i] ==  - ) continue;       if (s[x][i] ==  . ) break;       ret *= 10;       ret += s[x][i] -  0 ;     }     if (s[x][0] ==  - ) ret *= -1;     return ret;   }   bool bisa(int x) {     for (int i = s[x].size() - 1; i >= 0; i--) {       if (s[x][i] ==  . ) break;       if (s[x][i] !=  0 ) return 1;     }     return 0;   }   int main() {     cin >> n;     long long ct = 0LL;     for (int i = 1; i <= n; i++) {       cin >> s[i];       if (s[i][0] ==  - ) neg++;       ct += pars(i);     }     for (int i = 1; i <= n; i++) {       long long tmp = pars(i);       if (bisa(i)) {         if (ct > 0) {           if (s[i][0] ==  - ) {             tmp--;             ct--;           }         } else if (ct < 0) {           if (s[i][0] !=  - ) {             tmp++;             ct++;           }         }       }       cout << tmp << endl;     }     return 0;   }   