백준 10973 파이썬 python : 이전 순열 @@황소처럼 우직하게@@ 스까묵자!
import sys input = sys.stdin.readline n = int(input()) lst = list(map(int, input().split())) def prev_permutation(lst): if len(lst) == 1: return [-1] for i in range(len(lst) - 1, 0, -1): if lst[i] .. hjp845.tistory.com