일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 미션
- JUnit5
- mock
- Level2
- 프리코스
- 스프링부트
- Docker
- 세션
- 우테코
- Paging
- REDIS
- yml
- 우아한테크코스
- MSA
- Spring Batch
- 레벨2
- 의존성
- HTTP
- 서블릿
- 프로그래머스
- 백준
- AOP
- AWS
- 자바
- 스프링 부트
- 코드리뷰
- 우아한세미나
- JPA
- 트랜잭션
- CircuitBreaker
Archives
- Today
- Total
목록알고리즘_백준/그래프이론 (1)
늘

다익스트라 알고리즘을 처음 배우고 풀었던 문제였다. 다익스트라만 적용하면 금방 풀리는 쉬운 문제였다..! #include #include #include #include using namespace std; int answer[20001];//최소 비용 vector line[300001];// 간선 int INF = 2000010; void dijstra(int start) { answer[start] = 0; priority_queue pq; pq.push(make_pair(0, start)); while (!pq.empty()) { int current = pq.top().second; int distance = -pq.top().first;//최소 힙으로 변환 pq.pop(); if (answer[..
알고리즘_백준/그래프이론
2021. 3. 24. 15:50