1
2
3
4
5
6
7
8
9
10
11
12
13
|
import sys
n=int(sys.stdin.readline())
tmp=0
for _ in range(99999):
if n <= 0: break
else :
cnt = 1
while n>0:
if n-cnt<0 : break
n-=cnt
cnt+=1
tmp+=1
print(tmp)
|
cs |
반응형
댓글