| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 백준
- JPA
- 그리디 알고리즘
- Java
- unity
- 프로그래머스
- pypy3
- C#강의
- 브루투포스
- python3
- Python
- 소수판별
- 파이썬
- 누적합
- appendleft
- popleft
- mvc
- 완전탐색
- LCM
- deque
- DP
- 우선순위큐
- 인프런
- 연관관계
- 소수찾기
- BFS
- 합 구하기
- spring
- 1일1솔
- c#
- Today
- Total
목록전체 글 (139)
jae_coding
문제 문제 링크 코드 import sys input = sys.stdin.readline input_string = list(input().strip()) stack = list() ans = 0 count = 1 primary_value = 0 for i in input_string: if i == '(': count *= 2 stack.append(i) elif i == '[': count *= 3 stack.append(i) elif i == ')': # 올바른 괄호열이 아닐 경우 if not stack or stack[-1] == '[': ans = 0 break elif primary_value == '(': ans += count count //= 2 stack.pop() elif i == '..
문제 문제 링크 코드 list사용 코드 import sys input = sys.stdin.readline n = int(input()) array = [0] * 10001 for _ in range(n): array[int(input())] += 1 for i in range(10001): num = i if array[i] != 0: for _ in range(array[i]): print(i) dict사용 코드 import sys input = sys.stdin.readline n = int(input()) memo = dict() lst = list() for _ in range(n): temp = int(input()) if temp not in memo: memo[temp] = 1 else: ..
문제 문제 링크 코드 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..