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

LCS 풀이는 검색해보면 좋은 설명들이 많이 있다. dp배열과 추가로 문자열을 담는 배열을 만들어서 그 배열에 문자열들을 저장했다. #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(NULL); string str1, str2; cin >> str1 >> str2; vector dp(str1.length() + 1, vector(s..
알고리즘
2022. 2. 21. 14:49