분류 전체보기
[프로그래머스 C++] 카카오프렌즈 컬러링북
[프로그래머스 C++] 카카오프렌즈 컬러링북
2024.04.28[프로그래머스 C++] 카카오프렌즈 컬러링북 https://school.programmers.co.kr/learn/courses/30/lessons/1829 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr 해결전략 너비우선탐색 BFS 정답코드 #include #include #include using namespace std;int dirY[4] = { -1, 0, 1, 0 };int dirX[4] = { 0, -1, 0, 1 };vector> v, ch;int NumOfArea = 0;int MaxOneArea = 0;void BFS(int y, int ..
[프로그래머스 C++] 개인정보 수집 유효기간
[프로그래머스 C++] 개인정보 수집 유효기간
2024.04.27[프로그래머스 C++] 개인정보 수집 유효기간 https://school.programmers.co.kr/learn/courses/30/lessons/150370 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr 해결전략 문자열 정답코드 #include #include #include #include using namespace std;map myMap;vector solution(string today, vector terms, vector privacies) { vector answer; int tYear = stoi(today.subs..
2024.04.25 운동일지
2024.04.25 운동일지
2024.04.26웨이트 1시간 (다리, 등)
2024.04.23 운동일지
2024.04.23 운동일지
2024.04.24웨이트 50분
[백준 1520번 C/C++] 내리막 길
[백준 1520번 C/C++] 내리막 길
2024.04.23[백준 1520번 C/C++] 내리막 길 https://www.acmicpc.net/problem/1520 1520번: 내리막 길 여행을 떠난 세준이는 지도를 하나 구하였다. 이 지도는 아래 그림과 같이 직사각형 모양이며 여러 칸으로 나뉘어져 있다. 한 칸은 한 지점을 나타내는데 각 칸에는 그 지점의 높이가 쓰여 있으 www.acmicpc.net 해결전략 깊이우선탐색 + 다이나믹 프로그래밍, Dynamic Programming DFS + DP (= 메모이제이션) DFS로만 풀면 시간초과가 나온다. DFS 풀이: 시간초과 #include #include using namespace std; int dirY[4] = { -1, 0, 1, 0 }; int dirX[4] = { 0, -1, 0, 1 }; int..
2024.04.22 운동일지
2024.04.22 운동일지
2024.04.22조깅 5.59km 왼쪽 무릎 조심
[UE] The following modules are missing or built with a different engine version: Would you like to rebuild them now?
[UE] The following modules are missing or built with a different engine version: Would you like to rebuild them now?
2024.04.22.uproject를 더블클릭하여 언리얼 엔진 에디터를 열려고 하면 아래와 같은 문구가 나오고 에디터가 켜지지 않는다. The following modules are missing or built with a different engine version: Would you like to rebuild them now? 해당 문제가 발생했을때 해결방안을 알아보자. The following modules are missing or built with a different engine version: 문제 상황 .uproject를 더블클릭하여 언리얼 엔진 에디터를 열려고 하면 아래와 같은 문구가 나오고 에디터가 켜지지 않는다. The following modules are missing or built with..
[프로그래머스 C++] 3 x n 타일링
[프로그래머스 C++] 3 x n 타일링
2024.04.22[프로그래머스 C++] 3 x n 타일링 https://school.programmers.co.kr/learn/courses/30/lessons/12902 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 해결전략 동적계획법 Dynamic Programming, DP dp[i] = dp[i-2] * 3 + dp[i-4] * 2 + dp[i-6] * 2 + dp[i-8] * 2 + dp[i-10] * 2 + ... dp[i] = dp[i-2] * 3 + ( dp[i-4] + dp[i-6] + dp[i-8] + dp[i-10] + ... ) * 2 크기가 n인 ..
2024.04.20 운동일지
2024.04.20 운동일지
2024.04.20맨몸운동 50분
[백준 7682번 C/C++] 틱택토
[백준 7682번 C/C++] 틱택토
2024.04.20[백준 7682번 C/C++] 틱택토 https://www.acmicpc.net/problem/7682 7682번: 틱택토 틱택토 게임은 두 명의 사람이 번갈아가며 말을 놓는 게임이다. 게임판은 3×3 격자판이며, 처음에는 비어 있다. 두 사람은 각각 X 또는 O 말을 번갈아가며 놓는데, 반드시 첫 번째 사람이 X를 놓고 www.acmicpc.net 해결전략 구현 정답코드 #include #include using namespace std; vector v; bool isWin(int ny, int nx, char player) // 특정 플레이어가 이겼는지 확인하는 함수 { // 가로 틱택토 if (v[ny][nx] == player && v[ny][nx] == v[ny][nx + 1] && v[ny]..
[UE] 언리얼 C++의 TArray, TSet, TMap 자료구조 라이브러리와 활용방법
[UE] 언리얼 C++의 TArray, TSet, TMap 자료구조 라이브러리와 활용방법
2024.04.20언리얼에서 제공하는 대표 컨테이너 라이브러리의 동작 원리와 활용 방법을 예제를 통해 살펴보자.언리얼 대표 컨테이너 라이브러리 TArray, TSet 의 내부 구조 이해각 컨테이너 라이브러리의 장단점을 파악하고, 알맞게 활용하는 방법의 학습 인프런 이득우님의 '언리얼 프로그래밍 Part1 - 언리얼 C++의 이해' 강의를 참고하였습니다. 😎 [이득우의 언리얼 프로그래밍 Part1 - 언리얼 C++의 이해] 강의 들으러 가기! 목차 언리얼 컨테이너 라이브러리 언리얼 컨테이너 라이브러리 언리얼 컨테이너 라이브러리 (Unreal Container Library, UCL)언리얼 엔진이 자체 제작해 제공하는 자료구조 라이브러리.줄여서 UCL(Unreal Container Library)라고도 함..언..
[백준 15864번 C/C++] 사다리 조작
[백준 15864번 C/C++] 사다리 조작
2024.04.19[백준 15864번 C/C++] 사다리 조작 https://www.acmicpc.net/problem/15684 15684번: 사다리 조작 사다리 게임은 N개의 세로선과 M개의 가로선으로 이루어져 있다. 인접한 세로선 사이에는 가로선을 놓을 수 있는데, 각각의 세로선마다 가로선을 놓을 수 있는 위치의 개수는 H이고, 모든 세로선 www.acmicpc.net 해결전략 백트래킹 Backtracking 정답 코드 #include using namespace std; int n, m, h; int ch[31][11]; bool Cal() { for (int start = 1; start > n >> m >> h; for (int i = 0; i > y >> x; ..