Don't know what is wrong

I can’t figure out what is wrong with the logic of my code. it passes the sample case but fails one test case on submission.
Could you provide some test cases or suggest what is wrong?

Your code seems correct.
Is it giving wrong answer on submission or TLE?
Submit this code and check it all test cases pass

its giving wrong answer bhaiiya

@ankit-c11
Change the type of x and y also to long long int and then it will work

your code passes both test cases

thankyou bhaiiya :slight_smile: :slight_smile: