baekjoon 20260227
This commit is contained in:
parent
cd2cda0f72
commit
9ed93293a4
11
code_study/Baekjoon/python/3276.py
Normal file
11
code_study/Baekjoon/python/3276.py
Normal file
@ -0,0 +1,11 @@
|
||||
N = int(input())
|
||||
s = N + 1
|
||||
ans = [1, N]
|
||||
for i in range(2, int(N**0.5)+1) :
|
||||
t = (N + i -1) // i
|
||||
|
||||
if s > i + t :
|
||||
s = i + t
|
||||
ans = [i, t]
|
||||
|
||||
print(" ".join(map(str, ans)))
|
||||
Loading…
x
Reference in New Issue
Block a user