Baekjoon-2252-줄 세우기
22 Sep 2022import math
S = int(input())
# N*(N-1)/2 < S < (N+1)*N/2 -> N-1개
N = int((1+math.sqrt(1+8*S))/2) - 1
print(N)
import math
S = int(input())
# N*(N-1)/2 < S < (N+1)*N/2 -> N-1개
N = int((1+math.sqrt(1+8*S))/2) - 1
print(N)