Need help in pintu and fruits problem

https://www.codechef.com/viewsolution/33219186

Code is partially correct please tell me the problem to help you i have commented some statement to understand the program please the solution.

What if more than one fruit doesn’t exist

1 Like

thanks buddy, I understand the problem.

https://www.codechef.com/viewsolution/33240409
what is the problem in my solution

The prices can be 0

when the price of the fruit is 0 it can be possible as the given fruit can have price of 0 then the lowest price will be 0.

https://www.codechef.com/submit/CHPINTU
Here is the link of my solution using STL

what is the problem in my solution. Can anyone plz help?
https://www.codechef.com/viewsolution/33274537

thanks, man I got that