#include using namespace std; int cost[10010]; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n,k; cin>>n>>k; int i,j; for(i=0;i>cost[i]; long long ans=0; for(i=0;i