Problem in my code

Here is my code. Why it is not passing all the test cases?

Hey @yashsharma4304

long long m, n;

otherwise m*m or n*n will overflow

If this resolves your query then please mark it as resolved :slight_smile:

Oh so that was the problem of memory. Ok I understand, Thank you. :smiley:

1 Like