#include "partition.h"
#include <algorithm>
#include <iostream>
std::vector<int> solve(std::vector<int> A) {
    int s=0;
    std::vector<std::pair<int,int>>v;
    int n=0;
    for(int i=0;i<A.size();i++){
        int e=A[i];
        v.push_back({e,n});
        n++;
        s+=e;
    }
    /**
    std::sort(v.begin(),v.end(),[](std::pair<int,int> a,std::pair<int,int> b){
        return a.first<b.first;
    });
    **/
    std::vector<int>ans;
    n--;
    for(int i=0;i<n/2;i++){
        ans.push_back(i);
    }
    ans.push_back(n);
    for(int i=n/2;i<n;i++){
        ans.push_back(i);
    }
    return ans;
}
