Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 그리디
- level1
- 코딩테스트
- 힙
- python
- N과M
- 다이나믹 프로그래밍
- MYSQL
- 수학
- level0
- 백준
- dict
- dfs
- BFS
- 가상메모리
- BOJ
- 구현
- DP
- 운영체제
- 재귀
- level3
- 가상메모리 관리
- 브루트포스
- 파이썬
- programmers
- 딕셔너리
- 프로그래머스
- level2
- 스택
- 다익스트라
Archives
- Today
- Total
목록2800 (1)
동캄의 코딩도장
백준 2800 [괄호 제거] 파이썬
https://www.acmicpc.net/problem/2800 2800번: 괄호 제거 첫째 줄에 음이 아닌 정수로 이루어진 수식이 주어진다. 이 수식은 괄호가 올바르게 쳐져있다. 숫자, '+', '*', '-', '/', '(', ')'로만 이루어져 있다. 수식의 길이는 최대 200이고, 괄호 쌍은 적어도 1개 www.acmicpc.net # 백준 2800 괄호 제거 import sys from itertools import combinations input = sys.stdin.readline lst = list(map(str, input().rstrip())) stack = [] arr = [] for i in range(len(lst)): if lst[i] == '(': stack.append(..
코테/BOJ
2022. 9. 7. 16:00