Getting wrong answer

plz have a look at my code:

hello @rabhi1611
use long long for x and y.

ohh, thanks, it works.