Pintu and fruits code(CHPINTU)


https://www.codechef.com/viewsolution/33153910
help me with test cases.
tell me where i’m wrong

Please Format your code. Also please link the question.

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

this is the code help me

What guarentees that there exists a fruit of the first type, given you have taken it as the minimum. Secondly, The constraints allow fruits with price 0, therefore it is possible that there is a fruit with price 0, but you ignore it.