code-https://ide.codingblocks.com/s/177391
my code is passing sample output , but , testcase 1&2 failed why,can any please explain
code-https://ide.codingblocks.com/s/177391
my code is passing sample output , but , testcase 1&2 failed why,can any please explain
Hey @S18LPC-OL0078 just change the variables to long int and then your code works fine.
If you still have any further doubts feel free to ask,otherwise please mark the doubt as resolved.