#include using namespace std; using ll=long long; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int N,K; cin>>N>>K; vectorA(N); for(int i=0;i>A[i]; priority_queue,greater>pq; ll sum=0,ans=0; for(int i=N-1;i>=0;i--){ if(pq.size()