본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 27334번 마라톤 대회 (Marathon Race)

by 현장 2023. 12. 2.

-Code

n = int(input())
arr = list(map(int, input().split()))
arr_sort = sorted(arr)

for i in arr:
    print(arr_sort.index(i) + 1)