import math
if __name__ == '__main__':
tc = int(input())
for i in range(0,tc):
n = int(input())
d = int(math.sqrt(n))
print('YES' if d*d == n else 'NO')
if __name__ == '__main__':
tc = int(input())
for i in range(0,tc):
n = int(input())
d = int(math.sqrt(n))
print('YES' if d*d == n else 'NO')
No comments:
Post a Comment