분류 전체보기
![1233. [S/W 문제해결 기본] 9일차 - 사칙연산 유효성 검사](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fbkm63O%2FbtrI6c5j5sO%2FjBuWtznlrkjT8hcZklnMq0%2Fimg.png)
1233. [S/W 문제해결 기본] 9일차 - 사칙연산 유효성 검사
https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV141176AIwCFAYD SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com * 완전이진트리 (포화이진트리 포함) 정점의 개수 N =11 리프노드수=6개 리프노드아님개수 = 11-6=5(11/2) 결론 : N/2초과->리프노드다 노드) 연산자인경우:자식없음->연산불가 -> 부모노드에 와야함 숫자인경우:자식있음->연산불가 -> 리프노드에와야함 import java.util.LinkedList; import java.util.Queue; import java.util.Scann..
캐릭터 생성
* MyCharacter 살펴보기(캐릭터->폰->액터 구조) UCLASS(config=Game, BlueprintType, meta=(ShortTooltip="A character is a type of Pawn that includes the ability to walk around.")) class ENGINE_API ACharacter : public APawn { GENERATED_BODY() public: /** Default UObject constructor. */ ACharacter(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get()); void GetLifetimeReplicatedProps(TArray& Out..
요세푸스 문제
https://www.acmicpc.net/problem/1158 1158번: 요세푸스 문제 첫째 줄에 N과 K가 빈 칸을 사이에 두고 순서대로 주어진다. (1 ≤ K ≤ N ≤ 5,000) www.acmicpc.net while(빌때까지) for(k-1번동안) 앞에꺼빼서 뒤에넣게 temp=q.pop q.add(temp) endfor sb.append(q.pop) //진짜제거 & 답에추가 endwhile import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collections; import java.util.LinkedList; import java.util.L..
1228. [S/W 문제해결 기본] 8일차 - 암호문1
ArrayList :검색 good vs LinkedList : 삽입삭제 good 사용하라. 출처 : http://changpd.blogspot.com/2014/08/arraylist-linkedlist-java.html import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collections; import java.util.LinkedList; import java.util.List; import java.util.Scanner; import java.util.Stack; import java.util.StringTokenizer; /* 사용하는 클래스명이 So..

게임플레이 프레임워크
* GameModeBase : 게임규칙, 게임의 신 역할 ex) 롤에서 넥서스터지면 게임끝 // Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "GameFramework/GameModeBase.h" #include "MyGameModeBase.generated.h" /** * */ UCLASS() class TESTUNREALENGINE_API AMyGameModeBase : public AGameModeBase { GENERATED_BODY() AMyGameModeBase(); }; // Fill out your copyright ..

로그와 디버깅
* 빈 액터에 의자 매쉬 집어넣기 // Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "GameFramework/Actor.h" #include "MyActor.generated.h" UCLASS() class TESTUNREALENGINE_API AMyActor : public AActor { GENERATED_BODY() public: // Sets default values for this actor's properties AMyActor(); protected: // Called when the game starts or wh..