← Back to List

1789번: 수들의 합 ↗

Solutions

Python 3
65 B | 65 chars
N=int(input())
S=0
k=1
while S+k<=N:
    S+=k
    k+=1
print(k-1)