Problem Link: BUYLAMP Problem - CodeChef
the explanation is wrong
@ryuk7051 Its fine the logic is print k*x + (n-k)*(min(x,y));
k*x + (n-k)*(min(x,y));
what is the use of finding the minimum of x and y oh yes will I get banned for discussing this problem
No!. U can discuss anything u feel like over here.