#include #include #include #include int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n,i,k,t; scanf("%d %d",&n,&k); int cost[n],c=0; for(i=0;i=0;j--) { if(cost[j+1]>cost[j]) { t=cost[j+1]; cost[j+1]=cost[j]; t=cost[j]; } else break; } } // for(i=k;i