온갖 에러와 실패 저장소

  • 홈
  • 태그
  • 방명록

2839 1

[백준] 설탕배달 2839 solved by Python

N = int(input()) five_kg_bag = 0 three_kg_bag = 0 while N >= 0: if N % 5 == 0: five_kg_bag += N // 5 print(five_kg_bag + three_kg_bag) break else: N -= 3 three_kg_bag += 1 else: print(-1)

알고리즘 2022.10.04
1
더보기
프로필사진

  • 분류 전체보기 (17)
    • 파이썬 (3)
    • Django (2)
    • FastAPI (2)
    • 자료구조 (1)
    • 알고리즘 (3)

Tag

Gil, 깃헙레파지토리, reference counting, 자료구조, FastAPI, Global Interpreter Lock, 파이썬프레임워크, Garbage Collector, 설탕배달, 레파지토리, 큐, 백준, 2839, 알고리즘, 파이썬마이크로서비스, Python, leetcode, 깃헙저장소, 네이밍컨벤션, 스택,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

  • 안녕하세요 백엔드 개발자 cocojen의 블로그입니다

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
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 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바