#include using namespace std; int n, a[100000]; bool cmp(int x, int y) { return (x>y); } int main() { ios::sync_with_stdio(false); cin.tie(NULL); fstream ccn("shuffle.in"), ccut("shuffle.out"); ccn >> n; for(int i=0; i> a[i]; } sort(a, a+n, cmp); long long sum = 0; for(int i=0; i