Notice
Recent Posts
Recent Comments
05-31 19:13
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 프로그래머스 조건에 맞는 개발자 찾기
- sql
- 데이터베이스
- 파이썬
- 백준 크리문자열
- 깃허브
- join
- 백준 24499 파이썬
- 리스트 컴프리헨션
- SAA-C02
- SQLD
- 정규화
- github
- 백준 2852
- react
- 알고리즘
- 백준 1756
- ROWNUM
- 백준 11059
- AWS
Archives
- Today
- Total
목록백준 1347 (1)
-
[백준 1347] 미로 만들기 파이썬
문제 https://www.acmicpc.net/problem/1347 코드 n = int(input()) cmd = input() dx, dy = [-1, 0, 1, 0], [0, 1, 0, -1] V = [['#' for j in range(101)] for i in range(101)] x, y, d = 50, 50, 2 ex = ey = sy = sx = 50 V[x][y] = '.' for i in cmd: if(i == 'L'): d = (d+3) % 4 elif(i == 'R'): d = (d+1) % 4 else: x = x + dx[d] y = y + dy[d] V[x][y] = '.' sy, ey, sx, ex = min(sy, y), max(ey, y), min(sx, x), max(..
Algorithm
2023. 10. 9. 10:45