알고리즘 문제 풀기/Codeup
Codeup 1282 - 제곱수 만들기
bug_maker
2019. 2. 8. 09:03
http://codeup.kr/problem.php?id=1282
Codeup 1282 - 제곱수 만들기
import mathn = int(input())k = 0for i in range(1, n): if math.sqrt(n - i) % 1 == 0: k = i n = int(math.sqrt(n - 1)) breakprint(k, n)