프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.krfrom collections import dequedef transform_time(time): h, m = map(int, time.split(':')) return h * 60 + mdef solution(plans): plans.sort(key=lambda x: transform_time(x[1])) answer = [] pause_hw = [] current_hw = None current_end_time = 0 for plan in plans: name, start_tim..
👉🏻 3060번: 욕심쟁이 돼지def yumyum(meals): even_sum = meals[0] + meals[2] + meals[4] odd_sum = meals[1] + meals[3] + meals[5] new_meals = [meals[i] + (odd_sum if i % 2 == 0 else even_sum) for i in range(6)] return new_mealsfor _ in range(int(input())): n = int(input()) meals = list(map(int, input().split())) total_sum = sum(meals) if total_sum > n: print(1) conti..
프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.krdef create_matrix(rows, columns): return [[row * columns + col + 1 for col in range(columns)] for row in range(rows)]def rotate(matrix, x1, y1, x2, y2): min_value = float('inf') prev = matrix[x1][y1] for y in range(y1, y2): current = matrix[x1][y+1] matrix[x1]..