일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- C++1167
- 소트 게임
- BFS
- LIS
- 16933
- 순열
- 백준 17071
- C++
- 백준 숨바꼭질5
- c언어
- 백트래킹
- 알고리즘
- C++ 1937
- 백준
- strtok
- 위상정렬
- C++1967
- 투포인터
- DP
- 프로그래머스
- 다익스트라
- 문자열
- DFS
- C++ 1918
- 조합론
- C++ 17071
- 조합
- 가장 긴 증가하는 부분 수열
- 인덱스 트리
- Backtracking
- Today
- Total
목록다익스트라 (2)
블로그
플래티넘 Ⅳ #include #include #include using namespace std; int n, m, k; struct NodeInfo { int node; int weightOrdis; }; struct compare { bool operator()(const NodeInfo& NodeInfo1, const NodeInfo& NodeInfo2) { return NodeInfo1.weightOrdis > NodeInfo2.weightOrdis; } }; //visit 필요없음 vector adjList[1001]; priority_queue toStart; priority_queue dis[1001]; //int shdis[1001] -> 최소값 저장해놓는 곳.. 인데 필요없어짐 //이 문..
골드 Ⅴ #include #include #include #include #define INF 987654321 using namespace std; struct NodeInfo { int node; int weightOrshdis; }; struct compare { bool operator()(const NodeInfo& NodeInfo1, const NodeInfo& NodeInfo2) { return NodeInfo1.weightOrshdis > NodeInfo2.weightOrshdis; } }; //그래프 연결관계 저장 -> nodeNum, weight vector adjList[20001];//노드 넘버와 그 노드까지 가는데 드는 weight 저장 필요 //nodeNum, shdis -> s..