인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

wkdwoals962334's profile image
wkdwoals962334

asked

Introduction to Python Algorithm Problem Solving (Coding Test Preparation)

역수열 문제

Written on

·

157

0

섹션 4 역수열 문제 코드 짜봣는데 틀린건가요?

n = int(input())

a = list(map(int,input().split()))

l = []

for i in range(len(a)-1,-1,-1):

    l.insert(a[i],n)

    n-=1

print(" ".join(map(str,l)))

역수열문제코테 준비 같이 해요! python

Answer 1

0

codingcamp님의 프로필 이미지
codingcamp
Instructor

안녕하세요^^

함수를 써서 해도 상관없습니다. 

wkdwoals962334's profile image
wkdwoals962334

asked

Ask a question