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
- ue4 Crash
- game ability system
- UE4
- tick처럼 사용
- tick 사용하지 않고
- multithreard chat
- draw call skeletal mesh
- deltaTime
- ue4 error
- Ai
- bluezone
- Unreal Engine 5
- 랜덤 맵 생성
- unreal engine 5 merge mesh
- UE5
- 언리얼
- 언리얼 자기장
- 13iew
- Unreal Engine 4
- 아이작 맵 생성
- UE
- LittleNightMare
- unreal engine
- Random Map Generator
- unity
- Unity Engine
- Chat Server
- UnrealEngine
- Unreal Engine Error
- 채팅 서버
Archives
- Today
- Total
Class GameDev* SheepAdult
프로그래머스 스택/큐 본문
def solution(progresses, speeds):
answer = []
cnt = 0
i = 0
while i != len(progresses):
while progresses[i] < 100:
for q in range(i, len(progresses)):
progresses[q] += speeds[q]
for p in range(i, len(progresses)):
if progresses[p] >= 100:
cnt += 1
if p == len(progresses) - 1:
answer.append(cnt)
cnt = 0
i = p
return answer
else:
answer.append(cnt)
cnt = 0
i = p
break
'Algorithm' 카테고리의 다른 글
[C++] vector에서 중복 제거 (0) | 2022.08.31 |
---|---|
[Python] 2022 KAKAO BLIND RECRUITMENT 신고 결과 받기 (0) | 2022.01.24 |