#include #include #include using namespace std; int main(){ int n; vector vec; cin >> n; int tmp; for(int i=0;i> tmp; vec.push_back(tmp); } sort(vec.begin(), vec.end()); int left,right; left = right = 0; for(int i=0;i