Showing wrong output
you’re entering the input wrong.You’re not taking input for t
- you had to use long long ans.
- you were not printing a new line after each test case.
I have fixed the code please check
https://ide.codingblocks.com/s/250817
you’re entering the input wrong.You’re not taking input for t