func_code_string: #include <bits/stdc++.h>   using namespace std;   const int N = 200200;   int n;   int a[N];   int main() {     ios::sync_with_stdio(false);     cin.tie(0);     cin >> n;     for (int i = 0; i < n; i++) {       cin >> a[i];     }     int cnt_0 = 0, cnt_neg = 0, pos = -1;     vector<int> used(n);     for (int i = 0; i < n; i++) {       if (a[i] == 0) {         used[i] = 1;         cnt_0++;       }       if (a[i] < 0) {         cnt_neg++;         if (pos == -1 || abs(a[pos]) > abs(a[i])) {           pos = i;         }       }     }     if (cnt_neg & 1) {       used[pos] = 1;     }     if (cnt_0 == n || (cnt_0 == n - 1 && cnt_neg == 1)) {       for (int i = 0; i < n - 1; i++) {         cout << 1 <<     << i + 1 <<     << i + 2 <<   n ;       }       return 0;     }     int lst = -1;     for (int i = 0; i < n; i++) {       if (!used[i]) continue;       if (lst != -1) {         cout << 1 <<     << lst + 1 <<     << i + 1 <<   n ;       }       lst = i;     }     if (lst != -1) cout << 2 <<     << lst + 1 <<   n ;     lst = -1;     for (int i = 0; i < n; i++) {       if (used[i]) continue;       if (lst != -1) {         cout << 1 <<     << lst + 1 <<     << i + 1 <<   n ;       }       lst = i;     }     return 0;   }   