diff --git a/code_study/Baekjoon/python/2164.py b/code_study/Baekjoon/python/2164.py new file mode 100644 index 0000000..5edcf16 --- /dev/null +++ b/code_study/Baekjoon/python/2164.py @@ -0,0 +1,7 @@ +from collections import deque + +q = deque(range(1,int(input())+1)) +while len(q)!=1: + q.popleft() + q.rotate(-1) +print(*q) \ No newline at end of file