Skip to content

Commit

Permalink
baekjoon/python/silver5/q2417_int_square_root(정수제곱근)
Browse files Browse the repository at this point in the history
  • Loading branch information
bong6981 committed Jan 3, 2022
1 parent c604387 commit 0617ac4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions baekjoon/python/silver5/q2417_int_square_root.py
@@ -0,0 +1,10 @@
# https://www.acmicpc.net/problem/2417
def solution():
x = int(input())
x = x**(1/2)
y = int(x)
if y < x :
print(y+1)
else:
print(y)
solution()

0 comments on commit 0617ac4

Please sign in to comment.