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
- 유니티
- 누적 합
- ue5
- 유니온 파인드
- 트리
- 백준
- Team Fortress 2
- 스택
- BFS
- 구현
- 브루트포스
- 재귀
- 투 포인터
- 문자열
- 정렬
- 우선순위 큐
- 백트래킹
- c++
- 알고리즘
- VR
- 다이나믹 프로그래밍
- 그래프
- 시뮬레이션
- DFS
- XR Interaction Toolkit
- 수학
- 자료구조
- 다익스트라
- Unreal Engine 5
- 그리디 알고리즘
Archives
- Today
- Total
목록텔레포트 C++ (1)
1일1알

먼저 2중 for문으로 한 도시에서 다른 모든 도시까지 가는 거리들을 텔레포트도 고려하여서 구하고, 플로이드-와샬 알고리즘으로 최소 거리를 구했다. #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; struct city { city() {}; city(int s, int x, int y) :s(s), x(x), y(y) {}; int s; int x; int y; }; int n, t, m; vector v(1001); vector dists(1001, vector(100..
알고리즘
2022. 1. 19. 15:24