func_code_string: #include <bits/stdc++.h>   int a[100005] = {};   int b[100005] = {};   std::vector<int> ans;   std::vector<std::pair<int, int> > arr;   int main() {     std::ios_base::sync_with_stdio(false);     std::cin.tie(NULL);     std::cout.tie(NULL);     int n, li = -1;     std::cin >> n;     for (int i = 0; i < n; i++) {       std::cin >> a[i];       if (li == -1 || a[i] > a[li]) li = i;     }     for (int i = 0; i < n; i++) {       std::cin >> b[i];       if (i != li) arr.push_back(std::make_pair(a[i], i));     }     std::sort(arr.begin(), arr.end(), std::greater<std::pair<int, int> >());     for (int i = 0; i < arr.size(); i += 2) {       if (i == arr.size() - 1)         ans.push_back(arr[i].second + 1);       else {         if (b[arr[i].second] > b[arr[i + 1].second])           ans.push_back(arr[i].second + 1);         else           ans.push_back(arr[i + 1].second + 1);       }     }     ans.push_back(li + 1);     std::cout << ans.size() <<   n ;     for (std::vector<int>::iterator it = ans.begin(); it != ans.end(); it++) {       if (it != ans.begin()) std::cout <<    ;       std::cout << *it;     }     std::cout <<   n ;   }   