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 |
Tags
- AlexNet
- YoLO
- 머신러닝
- 그래프 이론
- dynamic programming
- MinHeap
- LSTM
- 딥러닝
- DP
- deep learning
- dfs
- C++
- real-time object detection
- opencv
- two-stage detector
- CNN
- r-cnn
- Reinforcement Learning
- eecs 498
- canny edge detection
- Python
- image processing
- object detection
- 백준
- Mask Processing
- BFS
- One-Stage Detector
- machine learning
- 강화학습
- MySQL
Archives
- Today
- Total
목록11403 (1)
JINWOOJUNG

접근법 처음에는 배열 index가 다르기에 index를 맞추고자 입력받을 때 1인 경우만 graph 배열에 저장하여 dfs()를 돌 때, 1부터 N까지 각 노드에서 시작하여 끝까지 내려가는 경로 중 지나가는 노드를 따로 저장하여 다시 인접행렬로 출력하도록 구현하였다. import sys import heapq sys.setrecursionlimit(10**6) N = int(input()) graph = [[] for _ in range(N+1)] resultGraph = [[0]* N for _ in range(N)] def dfs(x,y,flag): if x == y and flag == False: flag = True elif x == y and flag == True: heapq.heappush..
백준
2024. 1. 5. 16:21