본문 바로가기

분류 전체보기179

1149) RGB거리 (C++) 출처 https://www.acmicpc.net/problem/1149 1149번: RGB거리 첫째 줄에 집의 수 N(2 ≤ N ≤ 1,000)이 주어진다. 둘째 줄부터 N개의 줄에는 각 집을 빨강, 초록, 파랑으로 칠하는 비용이 1번 집부터 한 줄에 하나씩 주어진다. 집을 칠하는 비용은 1,000보다 작거나 www.acmicpc.net 내 풀이 #include using namespace std; int house[1001][3];//범위 지정 N=2~1000 RGB=3 int N = 0; int main() { cin >> N; //RGB값을 입력받음 for (int i = 1; i > house[i][j]; } } //2부터 시작하여 전 값 비교 for (int i = 2; i 2022. 4. 22.
2810) 컵홀더 (C++) 출처 https://www.acmicpc.net/problem/2810 2810번: 컵홀더 첫째 줄에 좌석의 수 N이 주어진다. (1 ≤ N ≤ 50) 둘째 줄에는 좌석의 정보가 주어진다. www.acmicpc.net 내 풀이 #include using namespace std; int N = 0;//좌석의 수 string cup = " "; int result = 0; bool Left = true;// false 나오면 다음부턴 다 1만 더해줌 int main() { cin >> N; cin >> cup; for (int i = 0; i < N; i++) { if (cup[i] == 'S') result += 1; else if (cup[i] == 'L' && cup[i + 1] == 'L' && L.. 2022. 4. 21.
유니티 미니맵 구현 개요 유니티 미니맵을 구현해 보았다. 참고한 출처 https://blog.theknightsofunity.com/implementing-minimap-unity/ [Tutorial] Implementing a Minimap in Unity - The Knights of Unity This tutorial will show developers how to create a depth mini-map in Unity. Implementing a minimap in Unity3D games is easier than you think! blog.theknightsofunity.com 조이스틱 구현은 밑의 링크 참고 https://xortl98.tistory.com/98?category=1069828 유니티 3인.. 2022. 4. 20.
3인칭 조이스틱 이력서?? 보호되어 있는 글 입니다. 2022. 4. 20.