https://www.acmicpc.net/problem/1789
1789번: 수들의 합
첫째 줄에 자연수 S(1 ≤ S ≤ 4,294,967,295)가 주어진다.
www.acmicpc.net

s = int(input())
total = 0
count = 0
while True:
    count += 1
    total += count
    if total > s:
        break
print(count-1)https://www.acmicpc.net/problem/1789
1789번: 수들의 합
첫째 줄에 자연수 S(1 ≤ S ≤ 4,294,967,295)가 주어진다.
www.acmicpc.net

s = int(input())
total = 0
count = 0
while True:
    count += 1
    total += count
    if total > s:
        break
print(count-1)