일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 백준
- binary_search
- 유한상태기계
- unity
- c#
- unreal
- 너비우선탐색
- 언리얼
- 시리얼라이제이션
- 인프런
- 구현
- DFS
- 재귀
- 웅진씽크빅
- upper_bound
- 유니티
- 이분탐색
- 게임개발공모전
- BFS
- UI 자동화
- 운영체제
- c++
- 게임개발
- lower_bound
- fsm
- 이득우
- 안드로이드
- 개발일지
- 프로그래머스
- 알고리즘
- Today
- Total
목록전체 글 (53)
초고교급 희망
초기화 > 물리 > 게임로직 >해체 프레임: 물리, 게임로직 //초기화 Awake() Start() //물리 FixedUpdate() :물리 연산 업데이트 고정된 실행 주기로 CPU를 많이 사용 1초에 약 50회 호출한다. //게임로직 Update(): 게임 로직 업데이트 물리연산에 관련된 로직을 제외한 나머지 주기적으로 변하는 로직을 넣을 때 사용 컴퓨터 환경에 따라 실행주기가 떨어질 수 있음 60프레임으로 실행됨 LateUpdate():모든 업데이트 끝난 후 마지막으로 호출되는 함수 캐릭터를 따라다니는 카메라, 로직의 후처리 //해체 OnDestroy(): 게임 오브젝트가 삭제될 때 ------------- //활성화(초기화와 물리영역 사이) OnEnable():Awake와 Start사이임 최초 1회..

N = int(input()) survey: int = 0 for i in range(N): opinion = int(input()) survey += opinion if (survey / N) > 0.5: print("Junhee is cute!") elif (survey / N) < 0.5: print("Junhee is not cute!") 의견으로 평균을 낸 다음에 분석 귀엽다는 의견(1)이 더 많으면 0.5 초과 안 귀엽다는 의견(0)이 더 많으면 0.5 미만 N은 홀수이니 0.5인 경우는 무시

#include #include using namespace std; int main() { string num1, num2; cin >> num1 >> num2; string bigger; int i = 2; while(i>=0) { if (num1[i] > num2[i]) { bigger = num1; break; } else if (num1[i] < num2[i]) { bigger = num2; break; } else if (num1[i] == num2[i]) { i--; continue; } } cout

#include #include #include using namespace std; int main() { int max = 0, index = 0, arr[26] = {}; int count = 0; string S; const string a = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; cin >> S; //대소문자 변환 for (int i = 0; i < S.length(); i++) { S[i] = toupper(S[i]); arr[a.find(S[i])]++; } for (int i = 0; i < 26; i++) { if (max < arr[i]) { max = arr[i]; count = 0; index = i; } if (max == arr[i]) count++; } if (..

#include using namespace std; int d(int n) { int num = n; while (n != 0) { num += n % 10; n = n / 10; } return num; } int main() { bool a[10001] = { false }; for (int i = 1; i < 10001; i++) { int x = d(i); if (x < 10001) a[x] = true; } for (int j = 1; j < 10001; j++) { if (!a[j]) cout