| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- DP
- appendleft
- JPA
- 우선순위큐
- 소수판별
- LCM
- 연관관계
- mvc
- 1일1솔
- pypy3
- 프로그래머스
- 그리디 알고리즘
- spring
- 누적합
- 백준
- Java
- 인프런
- unity
- BFS
- python3
- Python
- c#
- 완전탐색
- 소수찾기
- C#강의
- 합 구하기
- 파이썬
- 브루투포스
- deque
- popleft
- Today
- Total
목록전체 글 (139)
jae_coding
문제 문제 링 코드 import sys from collections import deque input = sys.stdin.readline def push(lst, num): lst.append(num) def pop(lst): if len(lst) != 0: print(lst[0]) lst.popleft() else: print(-1) def size(lst): print(len(lst)) def empty(lst): if len(lst) != 0: print(0) else: print(1) def front(lst): if len(lst) != 0: print(lst[0]) else: print(-1) def back(lst): if len(lst) != 0: print(lst[-1]) else: ..
문제 문제 링크 코드 import sys input = sys.stdin.readline T = int(input()) def VPS(inp_str): result = 0 for i in inp_str: if i == '(': result += 1 elif i == ')': result -= 1 if result < 0: break return result for _ in range(T): inp_str = list(input().strip()) ans = VPS(inp_str) if ans == 0: print("YES") else: print("NO")
문제 문제 링크 코드 import sys input = sys.stdin.readline N = int(input()) stack = list() def push(stack, num): stack.append(num) def pop(stack): if len(stack) != 0: n = stack[len(stack)-1] print(n) del stack[-1] else: print(-1) def size(stack): print(len(stack)) def empty(stack): if len(stack) == 0: print(1) else: print(0) def top(stack): if len(stack) != 0: print(stack[len(stack)-1]) else: print(-1) f..