title: "[프로그래머스] 등수 매기기 Python 파이썬 해설 (Level 0) - 이도훈"
cleanUrl: "programmers/120882"
description: "프로그래머스 Level 0 문제 [등수 매기기]의 풀이를 정리합니다."

문제 설명 및 제한사항

아이디어 및 해결 방법

코드

def solution(score):
    avg = [(x+y)/2 for x, y in score]
    
    _avg = avg[:]
    _avg.sort(reverse=True)
    
    answer = [_avg.index(x) + 1 for x in avg]
    return answer

출처

프로그래머스 코딩테스트 연습 https://school.programmers.co.kr/learn/challenges