[기본수학1] 손익분기점
1712번: 손익분기점 월드전자는 노트북을 제조하고 판매하는 회사이다. 노트북 판매 대수에 상관없이 매년 임대료, 재산세, 보험료, 급여 등 A만원의 고정 비용이 들며, 한 대의 노트북을 생산하는 데에는 재료비와 www.acmicpc.net 첫 제출 코드 input = input() input_split = input.split(" ") fixed_price = int(input_split[0]) addi_price = int(input_split[1]) sale_price = int(input_split[2]) if addi_price >= sale_price: print(-1) else: print(fixed_price // (sale_price - addi_price) + 1) 리팩토링 코드 (가독..
2021.02.20