[프로그래머스] 정수 제곱근 판별Lv.1
from math import sqrt def solution(n): temp = sqrt(n) return int(pow(temp + 1, 2)) if temp == int(temp) else -1