#include using namespace std; typedef long long int ll; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int n,k; cin >> n >> k; vector x(n); for(int i=0;i> x[i]; } sort(x.begin(), x.end()); vector v; ll res=0; for(int i=1;i