Only half the test cases pass please see

code-https://ide.codingblocks.com/s/329740

Hey @amanb25
Your answer is overflowing so use long long instead of int.

1 Like

thank you it works now!!

1 Like