• + 2 comments

    I got the catch! I wasn't declaring x and ans long long instead they were of type INT and overflowing Thanks for Help Anyway :)