week1 20301 반전요세푸스 정재홍 #41
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
from collections import deque
deque 모듈을 활용하여
요세푸스 문제와 비슷하게 풀었습니다.
주요 아이디어는 flag='right'를 이용했다는 점과
killed 리스트의 길이를 체크하며,
m명의 인원이 죽었을 때 flag를 바꾸어준 점입니다.