Phone prices , code S10E


problem-https://www.codechef.com/problems/S10E
Please tell me at which test cases why my code gives wrong answer.I have tried to test as many cases i can but i was not able to detect any fault in my code.

Where is your code, well you can see solution in my profile

Price needs to strictly smaller. Your if condition has <= change it to <

thanks @s5960r for helping .

1 Like