일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Android
- permutation
- Python
- 최소공배수
- 9095
- 11기
- 코틀린
- 괄호
- 1260
- Combination
- 코테
- 나머지
- lcm
- Kotlin
- 11053
- LCS
- expo
- 앱
- 6603
- 백준
- 뒤로가기
- 순열
- 파이썬
- 홈화면
- 11057
- 안드로이드
- itertools
- 1182
- 11054
- 매일11시
Archives
- Today
- Total
목록1759 (1)
황소개발자
백준 1759 파이썬 python : 암호 만들기 @@황소처럼 우직하게@@ 코로나 조심하세요
import sys input = sys.stdin.readline 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] j = n - 1 while lst[i - 1] >= lst[j]: j -= 1 tmp = lst[j] lst[j] = lst[i - 1] lst[i - 1] = tmp lst = lst[:i] + sorted(lst[i:]) return lst L, C = map(int, input().split()) lst = input().split() lst.sort() bit = [0] * (C - L) + [1] * L bites = ..
백준 문제 풀이
2020. 2. 28. 16:56