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

문제 문제 링크 코드 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")
알고리즘 문제/자료구조 문제
2022. 7. 18. 14:55