Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- DP
- Python
- 파이썬
- 소프티어
- Baekjoon
- Lv. 0
- 너비 우선 탐색
- LEVEL 2
- Lv. 3
- Dynamic Programming
- 티스토리챌린지
- 백준
- 깊이 우선 탐색
- dfs
- javascript
- level 3
- 오블완
- programmers
- 프로그래머스
- bfs
- SQL
- Lv. 2
- Lv. 1
- 동적계획법
- 자바스크립트
- join
- Java
- SQL 고득점 KIT
- softeer
- group by
Archives
- Today
- Total
목록11724 (1)
몸과 마음이 건전한 SW 개발자
백준 SILVER 2 [11724번] 연결 요소의 개수 {언어 : Python}
문제 링크https://www.acmicpc.net/problem/11724 정답 코드import sysfrom collections import dequeinput = sys.stdin.readlinen, m = map(int, input().split(" "))adjL = [[] for _ in range(n+1)]for i in range(m): start, to = map(int, input().split()) adjL[start].append(to) adjL[to].append(start)visited = [0 for _ in range(n+1)]answer = 0for j in range(1, n+1): if visited[j]: continue answ..
알고리즘
2024. 6. 2. 18:30