Dont know y my answer is wrong

problem
https://hack.codingblocks.com/app/practice/2/276/problem
my code

The answer variable should not be int
As the value would overflow int
It should ideally be long long
But the setter wrote it as int too and made the testcases accordingly
That’s why its not working properply

so instead of long long int use int testcases will pass

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.