목록10819 (1)
황소개발자
백준 10819 파이썬 python : 차이를 최대로 @@황소처럼 우직하게@@ 볼륨 쵀돼료!
import sys input = sys.stdin.readline n = int(input()) lst = list(map(int, input().split())) lst.sort() def next_permutation(lst): n = len(lst) i = n - 1 while i > 0 and lst[i - 1] >= lst[i]: i -= 1 if i == 0: return [-1] # i - 1 j = n - 1 while lst[j]
백준 문제 풀이
2020. 2. 28. 07:08