Kindly check my code

@Manvik-Arya-4391661007540658 i have made some modifications here, try submitting this code https://ide.codingblocks.com/s/265310

test case no. 1 and 4 are coming wrong

@Manvik-Arya-4391661007540658 use long long int.

still test case 1 & 4 aren’t working

@Manvik-Arya-4391661007540658 https://ide.codingblocks.com/s/265393

nope, still both of the cases aren’t working

@Manvik-Arya-4391661007540658 please refer to this code

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.