My Solution: CodeChef: Practical coding for everyone
Problem: CodeChef: Practical coding for everyone
Can anybody help me to find bug in my code? My approach to the problem is correct and it is running correct for test cases.
My Solution: CodeChef: Practical coding for everyone
Problem: CodeChef: Practical coding for everyone
Can anybody help me to find bug in my code? My approach to the problem is correct and it is running correct for test cases.
you have applied wrong logic i guess
you can refer my code
https://www.codechef.com/viewsolution/41141492
logic was correct, you can check my code too.
I have used the same logic in video lecture provided by codechef, I have also tried to debug the code by cout the points and they are correct.