일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- unity
- python3
- 소수찾기
- deque
- 1일1솔
- c#
- 인프런
- 백준
- DP
- 그리디 알고리즘
- pypy3
- BFS
- 소수판별
- LCM
- 연관관계
- 완전탐색
- JPA
- 우선순위큐
- mvc
- 합 구하기
- Python
- 프로그래머스
- spring
- 파이썬
- appendleft
- popleft
- C#강의
- 브루투포스
- Java
- 누적합
Archives
- Today
- Total
목록POP (1)
jae_coding

문제 문제 링크 코드 case 1 (rotate) import sys from collections import deque input = sys.stdin.readline n = int(input()) balloons = deque(enumerate(map(int, input().split()))) result = list() while balloons: x, value = balloons.popleft() result.append(x+1) if value > 0: balloons.rotate(-(value - 1)) else: balloons.rotate(-value) print(*result) case 2 (append, pop 활용) import sys from collections import d..
알고리즘 문제/자료구조 문제
2022. 7. 19. 18:29