only 1 test case giving correct answer.
i handled all the corner cases.
link: https://ide.codingblocks.com/s/233338
Please help
Religious People problem
i see for large test case ur code gives -ve answer
idk why
like for small test case it worked perfectly fine
check out this code
this code works fine
i tried debugging it in all possible way but coudnt rectify any problem
1 Like
Converted int to long long int and it passed.
Thanks
Lol okay
But then my code worked fine with int
I was stuck in this problem for hours.Just a simple mistake 
okay finally u did it.
1 Like
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.