← Back to List

11815번: 짝수? 홀수? ↗

Solutions

Python 3
162 B | 162 chars
from math import *
a=input()
L=list(map(int,input().split()))
for i in L:
    if int(sqrt(i))**2 == i:
        print(1,end=" ")
    else:
        print(0,end=" ")