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
- 다익스트라
- 트리
- 누적 합
- 정렬
- 그리디 알고리즘
- 백준
- 그래프
- Team Fortress 2
- 유니온 파인드
- 재귀
- BFS
- 우선순위 큐
- 스택
- XR Interaction Toolkit
- 자료구조
- 수학
- DFS
- 투 포인터
- 문자열
- 다이나믹 프로그래밍
- VR
- 브루트포스
- c++
- ue5
- 백트래킹
- Unreal Engine 5
- 알고리즘
- 유니티
- 구현
- 시뮬레이션
Archives
- Today
- Total
목록class 2 (2)
1일1알
백준 4153번 직각삼각형 C++
#include #include #include #include #include #include #include using namespace std; int main() { int a, b, c; int arr[3]; while (1) { cin >> a >> b >> c; //while문 종료 if (a == 0 && b == 0 && c == 0) break; arr[0] = a; arr[1] = b; arr[2] = c; //오름차순 정렬 sort(arr, arr + 3); if (arr[0] * arr[0] + arr[1] * arr[1] == arr[2] * arr[2]) { cout
알고리즘
2021. 10. 15. 15:26
백준 1085번 직사각형에서 탈출 C++
#include #include #include #include #include #include using namespace std; int main() { int x, y, w, h; int min = 1001; cin >> x >> y >> w >> h; //x좌표 비교 (0에서 x까지의 거리와 w에서 x까지의 거리) if (x > w - x) { if (w - x h - y) { if (h - y < min) { min = h - y; } } else { if (y < min) { min = y; } } //네 개의..
알고리즘
2021. 10. 15. 15:11