[백준] 1712, 2292 (파이썬)

Colacan·2022년 1월 18일
1

[백준]

목록 보기
2/43

오늘은 코드스테이츠 AI부트캠프 적응에 시간이 걸려 상대적으로 적었다.
그래도 틈틈히 풀어나갈 예정이다.

백준 1712번 손익분기점

A,B,C = map(int,input().split()) # map함수: 리스트 요소를 지정함수로 처리
if B>=C:
    print(-1)
else: print(int(A/(C-B))+1)

백준 2292번 벌집

#1,7,19,37,61
bee = int(input())
bee_way = 1
count = 1
while bee>bee_way:
    bee_way += 6*count
    count+=1
print(count)
profile
For DE, DA / There is no royal road to learning

0개의 댓글