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

최대 점수 : dp[i][j] = 붙어있는 dp[i-1]중 MAX + v[i][j] 최대 점수 : dp[i][j] = 붙어있는 dp[i-1]중 MIN+ v[i][j] 인데, 메모리 제한이 4MB 이기 때문에 2차원 배열을 만들지 않고 입력받는대로 값을 갱신하면서 문제를 해결하였다. #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(..
알고리즘
2022. 3. 31. 11:24