Could someone explain me how to solve problem Discount on crackers

https://www.codechef.com/LRNDSA08/problems/ACM14KG3

1 Like

thanks a lot sir

1 Like

Sir could you please explain me why we can’t use dijkstra here.