일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- DFS
- RNN
- 밑바닥부터 시작하는 딥러닝2
- deep learning
- Python
- marchien learning
- overfiting
- tree purning
- SQLD
- dynamic programming
- classification
- Linear Regression
- word2vec
- marchine learning
- 고전소설
- numpy
- Machine Learning
- do it! 알고리즘 코딩테스트: c++편
- Backtracking
- C++
- quadratic discriminant analysis
- model selection
- Language model
- 딥러닝
- underfiting
- CBOW
- 밑바닥부터 시작하는 딥러닝
- jini impurity
- BFS
- Baekjoon
- Today
- Total
목록Backtracking (2)
newhaneul

# Baekjoon 1759번: 암호 만들기 import sys input = sys.stdin.readline L, C = map(int, input().split()) code = input().split() code.sort() def DFS(cstr, m): global L if m == C: if len(cstr) == L: count = 0 flag = False for char in cstr: if char in 'aeiou': flag = True else: count += 1 if flag == True and 1 < count: print(cstr) return DFS(cstr + code[m], m+1) DFS(cstr, m+1) DFS("", 0) 이번 문제는 백트래킹 문제이다. 문..

# Baekjoon 15686번: 치킨 배달 import sys from collections import deque from itertools import combinations input = sys.stdin.readline N, M = map(int, input().split()) city = [[] for _ in range(N)] market_info = [] house_info = [] tlst = [] for i in range(N): arr = input().split() for j in range(N): city[i].append(int(arr[j])) if arr[j] == '2': market_info.append((i, j)) elif arr[j] == '1': house_info...