최고의 백엔드 개발자 (예정)

  • 홈
  • 태그
  • 방명록

Algorithm 1

[boj 1092.python] '배' 풀이 (feat. 언어만 바꿔도 통과, Python3와 PyPy3의 차이)

https://www.acmicpc.net/problem/1092  1차 시도 👉 시간 초과 실패N = int(input()) # 크레인 갯수cranes = list(map(int, input().split())) # 각 크레인의 무게 제한M = int(input()) # 박스의 갯수boxes = list(map(int, input().split())) # 각 박스의 무게cranes.sort(reverse = True)boxes.sort(reverse = True)# 예외 처리if boxes[0] > cranes[0]: print(-1)# 시간이 얼마나 걸리는지 계산time = 0while boxes: time += 1 for crane in cranes: # 각 크레인이 ..

Algorithm/BaekJoon 2024.09.23
이전
1
다음
더보기
프로필사진

쉬지마 이경진

  • 분류 전체보기 (105)
    • Containerization (11)
      • Docker (11)
    • Programming Languages (8)
      • Python (8)
    • General (5)
      • IDE (3)
      • debugging (2)
      • etc (0)
    • Algorithm (27)
      • Programmers (12)
      • LeetCode (6)
      • BaekJoon (6)
    • Framework (6)
      • Spring (5)
    • Architecture (2)
      • MSA (2)
    • Project (25)
      • Newsfeed (8)
      • MSA 프로젝트 (8)
      • 대용량 트래픽 프로젝트 (8)
    • Cloud (5)
      • AWS (5)
    • Computer Science (10)
    • Review (6)

방문자수Total

  • Today :
  • Yesterday :

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

github

Copyright © Kakao Corp. All rights reserved.

티스토리툴바