HELP-CodeMantra-RE

https://www.codechef.com/viewsolution/36110184

import math
t,n=map(int,input().split())
for i in range(t):
p=int(input())
d = math.sqrt§
if (p-int(d)int(d)) <= (0.01n)*p:
print(‘yes’)
else:
print(‘no’)

this is my solution it only passed one test case but showed RE for others

try to run it on negative values …you will get the answer

N can be negative too. Use abs(N)

This means test cases were weak…if n < 0, just print “no”, since negative square root leads to complex values and not integer/floating values…if you used abs(N) you should have got WA…

Why can’t I find the submit button now in contest ?

problems are not added to practice section yet