백준 2292 - 벌집 (파이썬)

Updated:

Answer

n = int(input())
d = 1
while n > 1:
    n -= (6 * d)
    d += 1
print(d)

Categories:

Updated: