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