From 8f8e0ca19a5132a9b919c6c894bd40b5171c242d Mon Sep 17 00:00:00 2001 From: songyc macbook Date: Fri, 4 Jul 2025 16:38:53 +0900 Subject: [PATCH] 20250704 baekjoon --- code_study/Baekjoon/python/2164.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 code_study/Baekjoon/python/2164.py 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