일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 파이썬
- 깊이 우선 탐색
- select
- 너비 우선 탐색
- Lv. 3
- 티스토리챌린지
- javascript
- level 3
- 자바스크립트
- LEVEL 2
- 오블완
- Baekjoon
- Lv. 0
- bfs
- Lv. 2
- 프로그래머스
- SQL 고득점 KIT
- SQL
- softeer
- 백준
- group by
- Python
- programmers
- join
- Lv. 1
- dfs
- Dynamic Programming
- Java
- 소프티어
- DP
- Today
- Total
목록Python (142)
몸과 마음이 건전한 SW 개발자
문제 링크 : https://softeer.ai/practice/info.do?idx=1&eid=804 Softeer 연습문제를 담을 Set을 선택해주세요. 취소 확인 softeer.ai 오답 코드 import sys input = sys.stdin.readline message = input().strip() secretKey = input().strip() fairKey = [] fair = "" for idx in range(len(message)): if len(fair) == 2: fairKey.append(fair) fair = "" if fair == message[idx]: if fair == "X": fairKey.append(fair+"Q") else: fairKey.append(fai..
문제 링크 : https://softeer.ai/practice/info.do?idx=1&eid=414 Softeer 연습문제를 담을 Set을 선택해주세요. 취소 확인 softeer.ai 풀이 코드 import sys input = sys.stdin.readline N, K = map(int, input().split()) PHString = input().strip() def is_valid(nextIdx): return 0 for d in range(K, 0, -1) => 왜냐하면 for문을 통해서 맨 왼쪽에 있는 로봇 부터 부품을 고를 예정이기 때문에 2. 부품을 골랐으면 중복으로 고르지 못하게 방문배열 체크 V[nextIdx] = 1 3. 로봇도 카운트 해주고 이제 다음 로봇으로 가야 하기 때문에..
문제 링크 : https://softeer.ai/practice/info.do?idx=1&eid=581 Softeer 연습문제를 담을 Set을 선택해주세요. 취소 확인 softeer.ai import sys input = sys.stdin.readline N, M, K = map(int, input().split()) rails = list(map(int, input().split())) minW = 10e9 def dfs(S, V, box): if S == N: global minW nowW = basket(box) if nowW < minW: minW = nowW return for i in range(N): if i not in V: dfs(S+1, V+[i], box+[rails[i]]) def ..

문제 링크 : https://softeer.ai/practice/info.do?idx=1&eid=623 Softeer 연습문제를 담을 Set을 선택해주세요. 취소 확인 softeer.ai 잘못된 코드 import sys input = sys.stdin.readline M, N, K = map(int, input().split()) secret = list(map(int, input().split())) list_btn = list(map(int, input().split())) index = 0 if M > N: print("normal") else: for i in range(N): print(list_btn[i] == secret[index]) if list_btn[i] == secret[index]..