sir sometimes i m getting correct answer and then after running the same code again i m getting wrong answer…why it is happening and how…?
https://ide.codingblocks.com/s/167948…
this is my code please check
Book allocation problem
@nikhilmeena hey nikhil declare all your variable inside the test case loop will fix your output problem but you have rebuilt your logic your code.
please tell me why i m getting testcases wrong here …on ide all of the test cases are correct…
sir i am still getting wrong test cases on submission after i declare all variables inside test loop as you said to do so…
is there an problem in my logic or code…i m getting correct answers on custom inputs
please look into my code and tell me the problem
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.