20250704 baekjoon
This commit is contained in:
parent
b1b39f141f
commit
8f8e0ca19a
7
code_study/Baekjoon/python/2164.py
Normal file
7
code_study/Baekjoon/python/2164.py
Normal file
@ -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)
|
||||||
Loading…
x
Reference in New Issue
Block a user