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
- 그래프
- 유니티
- DFS
- c++
- 우선순위 큐
- ue5
- 구현
- 투 포인터
- 누적 합
- 스택
- 시뮬레이션
- 문자열
- 다이나믹 프로그래밍
- 정렬
- 알고리즘
- 수학
- XR Interaction Toolkit
- 백트래킹
- VR
- 자료구조
- 백준
- 다익스트라
- 트리
- BFS
- 재귀
- Unreal Engine 5
- 그리디 알고리즘
- 유니온 파인드
- 브루트포스
- Team Fortress 2
Archives
- Today
- Total
목록농장 관리 C++ (1)
1일1알
백준 1245번 농장 관리 C++
https://www.acmicpc.net/problem/1245 1245번: 농장 관리 첫째 줄에 정수 N(1 < N ≤ 100), M(1 < M ≤ 70)이 주어진다. 둘째 줄부터 N+1번째 줄까지 각 줄마다 격자의 높이를 의미하는 M개의 정수가 입력된다. 격자의 높이는 500보다 작거나 같은 음이 아닌 정수 www.acmicpc.net bfs #include #include #include #include #include #include using namespace std; int n, m; struct posInfo { int row; int col; int height; }; int dRow[8] = { -1,-1,0,1,1, 1, 0,-1 }; int dCol[8] = { 0 , 1,1,1,0..
알고리즘
2022. 11. 3. 17:29