반응형
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
- N과M
- 다이나믹 프로그래밍
- 가상메모리 관리
- level2
- 힙
- level3
- dfs
- 파이썬
- 수학
- 백준
- 운영체제
- 에라스토테네스의 체
- 브루트포스
- 구현
- MYSQL
- python
- 코딩테스트
- level0
- 스택
- 재귀
- level1
- 딕셔너리
- BOJ
- 그리디
- DP
- BFS
- 다익스트라
- programmers
- 프로그래머스
- 가상메모리
Archives
- Today
- Total
목록ac (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