Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 백트렉킹
- dfs
- 프로그래머스
- ElementTree
- 코딩테스트
- 백준
- 위클리 6주차
- Java
- 문서자동화
- 위클리 챌린지
- openssl
- 몯느 순열
- 순열장난
- 재귀
- 백트래킹
- 복서 정렬하기
- 너비우선탐색
- 39080
- BOJ
- 줄어드는 숫자
- DP
- 백트랙킹
- BFS
- 완전 탐색
- 1174
- 입실 퇴실
- 10597
- 그래프
- 좋은 수열
- 부분 수열의 합
Archives
목록1679 (1)
개발자-H 입니다.

https://www.acmicpc.net/submit/1697/31937024 로그인 www.acmicpc.net 그래프 탐색 문제이나 BFS와 DFS가 섞인 문제이다. BFS로 최단 경로를 찾고 DFS로 최단 경로까지 이동을 찾는 문제이다. import java.util.*; public class Main { public static final Scanner scanner = new Scanner(System.in); public static void main(String[] args) throws Exception { int N = scanner.nextInt(); int K = scanner.nextInt(); boolean[] visited = new boolean[100000 + 1]; Ar..
Algorithm/문제 풀이
2021. 8. 9. 22:39