언어, 알고리즘 공부/백준2020. 3. 1. 21:00[백준 알고리즘] 2292번 벌집 (Python)
N = int(input()) cnt = 1 sum = 1 while N > sum: sum += cnt*6 cnt += 1 print(cnt) ▼링크 https://www.acmicpc.net/problem/2292
N = int(input()) cnt = 1 sum = 1 while N > sum: sum += cnt*6 cnt += 1 print(cnt) ▼링크 https://www.acmicpc.net/problem/2292