백준
벌집 - 2292번 문제
minsugar
2025. 2. 17. 15:54
난 정말 이 문제는 다른 선생님들의 블로그가 없었다면... 못 풀었을 것이다!
import sys
input = sys.stdin.readline
num = int(input().strip())
start = 1 # 벌집
cnt = 1
while num > start:
start += 6 * cnt
cnt += 1
print(cnt)