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
- dfs
- python
- 그리디
- MYSQL
- 딕셔너리
- N과M
- level3
- 다이나믹 프로그래밍
- 힙
- 가상메모리
- 재귀
- 백준
- 코딩테스트
- 파이썬
- level2
- 브루트포스
- 운영체제
- dict
- BFS
- 다익스트라
- 수학
- programmers
- 가상메모리 관리
- 스택
- DP
- BOJ
- 프로그래머스
- level1
- level0
- 구현
Archives
- Today
- Total
목록5430 (1)
동캄의 코딩도장
백준 5430 [AC] 파이썬
# 백준 5430 AC import sys from collections import deque input = sys.stdin.readline for _ in range(int(input().rstrip())): p = list(map(str, input())) n = int(input().rstrip()) lst = input().rstrip()[1:-1] if lst: lst = list(map(str, lst.split(','))) if p.count('D') > n: print('error') elif p.count('D') == n: print([]) else: i = 0 front = 0 back = 0 check = 0 while i < len(p)-1: if p[i] == 'R': j =..
코테/BOJ
2022. 4. 12. 20:12