Skip to content

Baekjoon 11815

1. Problem

문제 확인하기

2. Solution

N = int(input())
X = list(map(int, input().split()))

for i in range(N):
    if X[i] == (int(X[i] ** 0.5) ** 2):
        print(1, end = " ")
    else:
        print(0, end = " ")