Didn't understand chef and street food

Hey, please anyone explain the problem statement chef and street food. I can’t get it clearly.

1 Like

You will be given no. of shops, price and no. of people. We assume that no. of people will be equally split among all the shops. So, naturally profit will be no. of people visiting chef’s shop multiplied by cost of item. Now, you have to just print maximum profit possible. :slight_smile:

Thank you. i understood🙂

1 Like

The number of shops includes the chefs shops? Can you please explain the first example case if possible

i am also not getting question can anyone explain me?

No, the number of shops doesn’t include chef’s shop.
In the first example case, chef choose 2nd type of food and the cost to that is;
cost=(p/(s+1))*v.