Is there any way i can see on which testcases my code is failing?

I’m trying to solve MODULAR EQUATION question that came in may long challenge 2021 (now moved to Practice section)

My code is failing for subtask #1 itself, but I’m not able to figure out why its failing,
is there any way i see the expected output vs my output or something like that?

btw, here’s my submission if anyone wants to help : CodeChef: Practical coding for everyone

TEST_CASE
1
17 37
CORRECT_OUTPUT
52
YOUR_OUTPUT
46

PS: Please edit the same thread instead of creating multiple threads for the same doubt.
https://discuss.codechef.com/t/cannot-submit-code-for-problem/12615/7?u=cubefreak777

2 Likes

Okay, Thanks alot for the testcase

I have stumbled upon this logic while searching for a solution, and I have seen that many people have used the same logic, is it a popular algorithm. Can anyone please explain?

Alternate Solution: CodeChef: Practical coding for everyone