출처

https://swexpertacademy.com/main/code/problem/problemDetail.do?problemLevel=3&contestProbId=AV14jJh6ACYCFAYD&categoryId=AV14jJh6ACYCFAYD&categoryType=CODE&problemTitle=&orderBy=PASS_RATE&selectCodeLang=PYTHON&select-1=3&pageSize=10&pageIndex=5

과정

  1. num에 0~9숫자체계를 넣어준다.
  2. 결과 값을 저장할 res를 만들어준다.
  3. res에 a[i]의 num에서의 index값을 추가해준다.
  4. res를 오름차순으로 정렬해준다.
  5. res에 있는 index값들을 다시 num에 있는 숫자체계 값으로 바꾸어 준다.
  6. 테스트 케이스 번호와 res를 출력해준다.

정답 코드

태그: ,

카테고리:

업데이트: