Don’t know bro… I’m getting the same result. I got RE (SIGFPE) error in the first case… got 80 points. Maybe some error in the test case
1 Like
Your solution gives the wrong answer for the sample testcase and has a division by zero error for the following test input:
2
3 10
1 10 0
2 10
1 1
3 Likes
Thank you very much sir for your response .
I get the error , it was just set my count variable to 1
Thank You. I know my error. I wasn’t taking all the inputs. Which was creating problem in further test cases. This was helpful
1 Like