일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- unity
- JPA
- pypy3
- 그리디 알고리즘
- 완전탐색
- DP
- appendleft
- 연관관계
- 1일1솔
- spring
- 우선순위큐
- 소수찾기
- 프로그래머스
- Java
- 소수판별
- 누적합
- LCM
- popleft
- 인프런
- Python
- C#강의
- 백준
- 브루투포스
- BFS
- 파이썬
- c#
- 합 구하기
- python3
- mvc
- deque
Archives
- Today
- Total
목록18511 (1)
jae_coding

문제 문제 링크 코드 import sys # 중복을 허용하는 조합 from itertools import product input = sys.stdin.readline n, k = map(int, input().split()) lst = list(map(int, input().split())) # 큰수부터 정렬(오름차순) lst.sort(reverse=True) result = 0 flag = False length = len(str(n)) while flag is False: for i in product(lst, repeat=length): temp = 0 for j in i: temp = temp * 10 + j if temp
알고리즘 문제/완전탐색(Brute Force)
2022. 7. 26. 13:49