| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- deque
- 그리디 알고리즘
- 인프런
- DP
- 백준
- C#강의
- Java
- 브루투포스
- 우선순위큐
- 소수찾기
- 합 구하기
- 파이썬
- BFS
- python3
- pypy3
- Python
- JPA
- 1일1솔
- popleft
- 프로그래머스
- LCM
- unity
- 연관관계
- c#
- 누적합
- spring
- appendleft
- 소수판별
- 완전탐색
- mvc
Archives
- Today
- Total
목록1158 (1)
jae_coding
문제 문제 링크 코드 import sys from collections import deque input = sys.stdin.readline N, K = map(int, input().split()) lst = deque(i for i in range(1, N+1)) result = list() count = 0 while len(lst) != 0: count += 1 if count % K != 0: lst.append(lst.popleft()) else: result.append(lst.popleft()) ans = "")
알고리즘 문제/자료구조 문제
2022. 7. 18. 16:55