#include using namespace std; int main(){ int n; cin >> n; vector calories(n); for(int calories_i = 0; calories_i < n; calories_i++){ cin >> calories[calories_i]; } // your code goes here int c=0,i,a=0; sort(calories.begin(),calories.end()); for(i=n;i>0;i--) { c=c+(i*pow(2,a)); a++; } cout<