끄적끄적 보니타

  • 홈

백준문제 1

단계별로 풀기 8단계 수학1 - 손익분기점(1712번 문제) Python 답안

와나 런타임 에러 너무 많이 나서 찾아봤다.. 런타임 에러나는 내 코드) fix_co, var_co, pro_co = raw_input().split(" ") fixed_cost = int(fix_co) variable_cost = int(var_co) profit = int(pro_co) selling_cnt = fixed_cost / (profit - variable_cost) + 1 if selling_cnt = profit: print -1 else: print int(fixed_cost / (profit - variable_cost)) + 1 * 런타임 에러나는 이유가 variable_cost 변수가 profit 변수보다 크거나 같을 때 체크 안하면 난다네,, 세상 개발자 고수들 넘 많아.. 또..

Algorithm/Baekjoon 2019.10.08
이전
1
다음
더보기
프로필사진

끄적끄적 보니타

더 나은 개발자가 되기 위해... ※ 잘못된 정보가 있거나 추가적인 정보가 필요하다면 피드백 부탁드립니다~

  • 분류 전체보기 (322)
    • Programming (98)
      • Python (2)
      • Java (0)
      • JavaScript & TypeScr.. (69)
      • Shell (2)
      • Unity (1)
    • Web (17)
    • Linux (8)
    • Algorithm (141)
      • Baekjoon (67)
      • Do it (30)
      • codewars (28)
      • Programmers (2)
      • SWEA (10)
      • algospot (0)
    • AI (4)
    • Database (7)
    • Security (8)
    • 기타 (26)
    • 교육 (10)
      • 자격증 (1)
      • 컨퍼런스 & 워크샵 (8)
      • 도큐먼트 & 관련 서적 (1)
    • Project (0)
    • 일상 (1)
    • 영어 (1)

Tag

Linux, Over_The_Wire, baekjoon, Command, 자료구조, BOJ, wargames, 알고리즘, python2, Python, angular5, Angular, 백준, 답안, python3, C, DOIT, C언어, overthewire, OverTheWire:Natas,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

  • github 주소
  • 01210210
  • 예프

티스토리툴바