baekjoon 20260227

This commit is contained in:
songyc macbook 2026-02-27 18:45:07 +09:00
parent cd2cda0f72
commit 9ed93293a4

View 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)))