백준 1568번: 새 #Python

ColorlessDia·2025년 3월 31일

algorithm/baekjoon

목록 보기
498/807
N = int(input())

time = 0

while 0 < N:
    K = 1
    
    while K <= N:
        N -= K
        K += 1
        time += 1

print(time)

0개의 댓글