일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 코틀린
- 안드로이드
- itertools
- 나머지
- Combination
- 1260
- 앱
- 11기
- 뒤로가기
- expo
- 백준
- 9095
- 1182
- 11057
- 파이썬
- 괄호
- permutation
- 순열
- 매일11시
- 6603
- lcm
- Python
- LCS
- 11054
- Android
- 홈화면
- Kotlin
- 최소공배수
- 11053
- 코테
Archives
- Today
- Total
목록15665 (1)
황소개발자
백준 15665 파이썬 python : N과 M (11) @@황소처럼 우직하게@@
n, m = map(int, input().split()) num_list = list(map(int, input().split())) num_list = list(set(num_list)) num_list.sort() anses = [] a = [0 for i in range(m)] def go(selected, m): if selected == m: anses.append(' '.join(map(str, a))) return for i in range(len(num_list)): a[selected] = num_list[i] go(selected + 1, m) go(0, m) print(anses[0]) for i in range(1, len(anses)): if anses[i - 1] != anse..
백준 문제 풀이
2020. 3. 2. 04:55