반응형
# @Author YoungMinKim
# baekjoon
from collections import deque
import sys
a,b = map(int,sys.stdin.readline().split())
q = deque([i for i in range(1,a+1)])
result = []
while len(q) != 0:
q.rotate(-b+1)
result.append(q.popleft())
x= ', '.join(map(str,result))
print('<'+x+'>')
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 13752 (0) | 2020.09.14 |
---|---|
baekjoon - python - 13241 (0) | 2020.09.14 |
baekjoon - python - 2164 (0) | 2020.09.13 |
baekjoon - python - 11942 (0) | 2020.09.13 |
baekjoon - python - 11729 (0) | 2020.09.13 |
댓글