일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- LCS
- Combination
- expo
- 백준
- itertools
- 파이썬
- 순열
- 최소공배수
- 코테
- 1260
- permutation
- 앱
- 6603
- 11057
- 안드로이드
- Kotlin
- 11053
- 11054
- 1182
- 나머지
- Android
- 뒤로가기
- 괄호
- lcm
- 매일11시
- 9095
- 11기
- Python
- 코틀린
- 홈화면
Archives
- Today
- Total
목록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