diff --git "a/week1/1977\354\231\204\354\240\204\354\240\234\352\263\261\354\210\230/solution.py" "b/week1/1977\354\231\204\354\240\204\354\240\234\352\263\261\354\210\230/solution.py" index e69de29..d7b7f93 100644 --- "a/week1/1977\354\231\204\354\240\204\354\240\234\352\263\261\354\210\230/solution.py" +++ "b/week1/1977\354\231\204\354\240\204\354\240\234\352\263\261\354\210\230/solution.py" @@ -0,0 +1,16 @@ +from math import sqrt + +M, N = int(input()), int(input()) + +checklist = list(range(M, N+1)) +answer = [] + +for num in checklist: + if sqrt(num).is_integer(): + answer.append(num) + +if(len(answer)==0): + print(-1) +else: + print(sum(answer)) + print(answer[0]) \ No newline at end of file