Each time I am getting correct output but test cases are not passing

https://ide.codingblocks.com/s/236333… plz help asap

@dhirenkinha use long long int in place of int in your code.