Wrong answer for Divisible SubArrays in Math section

Getting wrong answer for the first test case… Code is available at https://ide.codingblocks.com/s/153752 … Could not understand which scenario is getting missed.

Hi @tisandas2011
Your code logic is absolutely fine. Just change int to long long int everywhere and we are through the question!

You may close the thread if you feel your doubt has been resolved. Don’t forget to give a rating :slight_smile:

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.